From 7047fe16da843d649baac375e9674f238072d7d5 Mon Sep 17 00:00:00 2001 From: Aaron Parecki Date: Sat, 6 Jan 2018 13:57:50 -0800 Subject: support posting code snippets --- views/partials/code-bookmarklet.php | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 views/partials/code-bookmarklet.php (limited to 'views/partials') 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("code?"+(window.location.hostname=='my_hostname ?>'?"edit="+encodeURIComponent(window.location.href)+"&":"")+"token=token ?>"); +})(); -- cgit v1.2.3