Skip to content

Commit

Permalink
Re-enable clock animation
Browse files Browse the repository at this point in the history
  • Loading branch information
machawk1 committed Jun 27, 2024
1 parent e3e6ce7 commit 07b5960
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 10 deletions.
8 changes: 3 additions & 5 deletions mink-plugin/content.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ function log (...messages) {
for (const msg of messages) {
console.log(msg)
}
// console.log(new Error().stack)
}
// console.trace()
}
Expand Down Expand Up @@ -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: '',
Expand Down Expand Up @@ -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 }
Expand Down
7 changes: 2 additions & 5 deletions mink-plugin/mink.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ function log (...messages) {
console.log(msg)
}
}
console.log(new Error().stack)
// console.trace()
}

Expand Down Expand Up @@ -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)
Expand Down Expand Up @@ -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) {
Expand Down

0 comments on commit 07b5960

Please sign in to comment.