summaryrefslogtreecommitdiff
path: root/views/partials/code-bookmarklet.php
diff options
context:
space:
mode:
Diffstat (limited to 'views/partials/code-bookmarklet.php')
-rw-r--r--views/partials/code-bookmarklet.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/views/partials/code-bookmarklet.php b/views/partials/code-bookmarklet.php
new file mode 100644
index 0000000..d0cf219
--- /dev/null
+++ b/views/partials/code-bookmarklet.php
@@ -0,0 +1,3 @@
+(function(){
+ window.open("<?= Config::$base_url ?>code?"+(window.location.hostname=='<?= $this->my_hostname ?>'?"edit="+encodeURIComponent(window.location.href)+"&":"")+"token=<?= $this->token ?>");
+})();