From 0ccdefd94550757f99a4da8bfd8cc42a49f66992 Mon Sep 17 00:00:00 2001 From: Vasili Gulevich <V.V.Gulevich@mail.ru> Date: Sat, 9 Jul 2016 22:03:45 +0600 Subject: [PATCH] Implemented URL persistence Provides means to link from time entry to the web page or origin, --- TogglLibrary.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/TogglLibrary.js b/TogglLibrary.js index 07b0b89..96b0650 100644 --- a/TogglLibrary.js +++ b/TogglLibrary.js @@ -409,6 +409,9 @@ function TogglButtonGM(selector, renderer) { responseData = JSON.parse(res.responseText); entryId = responseData && responseData.data && responseData.data.id; $curEntryId = entryId; + if (params.storeEntryUrl) { + GM_setValue('_url['+entryId+']', window.location.href); + } document.dispatchEvent(new CustomEvent('TogglButtonGMUpdateStatus')); } }); -- GitLab