diff options
author | Aaron Parecki <aaron@parecki.com> | 2018-01-06 13:57:50 -0800 |
---|---|---|
committer | Aaron Parecki <aaron@parecki.com> | 2018-01-06 13:57:50 -0800 |
commit | 7047fe16da843d649baac375e9674f238072d7d5 (patch) | |
tree | 80e10520d5964d1bdd147d26317371d258abdf28 /views/partials/code-bookmarklet.php | |
parent | e5f88779f16c06f25ec4685bd07badfe5986d706 (diff) |
support posting code snippets
Diffstat (limited to 'views/partials/code-bookmarklet.php')
-rw-r--r-- | views/partials/code-bookmarklet.php | 3 |
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 ?>"); +})(); |