From 07b5960ab5ea55a2e9648726ca03a6a0f283769f Mon Sep 17 00:00:00 2001 From: Mat Kelly Date: Thu, 27 Jun 2024 15:31:55 -0400 Subject: [PATCH] Re-enable clock animation --- mink-plugin/content.js | 8 +++----- mink-plugin/mink.js | 7 ++----- 2 files changed, 5 insertions(+), 10 deletions(-) diff --git a/mink-plugin/content.js b/mink-plugin/content.js index 01dd4ee..f461090 100644 --- a/mink-plugin/content.js +++ b/mink-plugin/content.js @@ -40,6 +40,7 @@ function log (...messages) { for (const msg of messages) { console.log(msg) } + // console.log(new Error().stack) } // console.trace() } @@ -342,8 +343,6 @@ chrome.runtime.onMessage.addListener(function (request, sender, sendResponse) { } if (request.method === 'startTimer') { - log('Got startTimer') - chrome.runtime.sendMessage({ method: 'setBadge', text: '', @@ -461,12 +460,11 @@ function animatePageActionIcon () { return } - // TOFIX: extension context invalidated - /*chrome.runtime.sendMessage({ + chrome.runtime.sendMessage({ method: 'setBadge', text: '', iconPath: { '38': clockIcons38[iteration], '19': clockIcons19[iteration] } - })*/ + }) iteration-- if (iteration < 0) { iteration = clockIcons38.length - 1 } diff --git a/mink-plugin/mink.js b/mink-plugin/mink.js index f8f3d84..f530c9e 100755 --- a/mink-plugin/mink.js +++ b/mink-plugin/mink.js @@ -41,6 +41,7 @@ function log (...messages) { console.log(msg) } } + console.log(new Error().stack) // console.trace() } @@ -155,11 +156,6 @@ chrome.runtime.onMessage.addListener( sendResponse({ value: 'noise' }) }) - // window.localStorage.setItem('minkURI', request.value) - // window.localStorage.setItem('mementos', request.mementos) - // window.localStorage.setItem('memento_datetime', request.memento_datetime) - - //sendResponse({ value: 'noise' }) } else if (request.method === 'findTMURI') { log('Got findTMURI') findTMURI(request.timegate, sender.tab.id) @@ -620,6 +616,7 @@ function tmInList (tmURI, tms) { function findTMURI (uri, tabid) { log('Finding TimeMap URI', uri) + $.ajax({ url: uri }).done(function (data, status, xhr) {