diff --git a/bookmark/index.html b/bookmark/index.html index 792fd06..7092542 100644 --- a/bookmark/index.html +++ b/bookmark/index.html @@ -20,7 +20,7 @@ to add this to your bookmarks.

Next time you open the bookmark, the will automatically be opened.

- Back   Open Popup Now + Back   Open Popup Now diff --git a/bookmark/script.js b/bookmark/script.js index 7f0053e..6f562ef 100644 --- a/bookmark/script.js +++ b/bookmark/script.js @@ -14,13 +14,18 @@ if (navigator.platform.match(/Mac/i)) { }); document.getElementById("open-popup").onclick = function() { - window.open( popupLink, "PopupTimer" + Date.now(), "width=250,height=100,menubar=no,toolbar=no,location=no,status=no,resizable=no,scrollbars=no" ); +} +document.getElementById("back").onclick = function() { + if (window.opener) + window.close(); + else + location.href = "/"; } function parseQueryParams() {