mirror of
https://github.com/pinry/pinry.git
synced 2025-11-16 18:05:51 +01:00
Adjust bookmarklet caps
This commit is contained in:
@@ -17,8 +17,8 @@
|
||||
</div>
|
||||
<div id="PinryNav" class="navbar-menu" :class="{ 'is-active': active}">
|
||||
<div class="navbar-start">
|
||||
<a class="navbar-item" :href="bookmarkLet">
|
||||
BookmarkLet
|
||||
<a class="navbar-item" :href="bookmarklet">
|
||||
Bookmarklet
|
||||
</a>
|
||||
<div
|
||||
v-if="user.loggedIn"
|
||||
@@ -118,7 +118,7 @@ export default {
|
||||
};
|
||||
},
|
||||
computed: {
|
||||
bookmarkLet() {
|
||||
bookmarklet() {
|
||||
const url = new URL(window.location);
|
||||
const host = url.origin;
|
||||
return `javascript:void((function(d){var s=d.createElement('script');s.id='pinry-bookmarklet';s.src='${host}/static/js/bookmarklet.js?'+Math.random()*10000000000000000;d.body.appendChild(s)})(document));`;
|
||||
|
||||
Reference in New Issue
Block a user