Skip to content
Snippets Groups Projects
Commit c48fa972 authored by basilevs's avatar basilevs
Browse files

Linux URL matching fixed

URL of timer depends on client OS

Issue #2
parent 8fe6e0aa
No related branches found
No related tags found
1 merge request!4A link to the origin from timer entry
......@@ -233,9 +233,9 @@ function TogglButtonGM(selector, renderer) {
});
}
const togglTimerUrl = /https:\/\/(?:www\.)toggl\.com\/app\/timer/;
this.tryDecorateTimer = () => {
if (!window.location.href.startsWith("https://toggl.com/app/timer"))
if (!togglTimerUrl.test(window.location.href))
return;
GM_addStyle("li.entry div.paragon-decoration { width:3em; padding:16px; }");
waitForElement(document, "#time-entry-list").then(timeEntryList => {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment