-
Notifications
You must be signed in to change notification settings - Fork 75
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Extension: Fix multiple inits (onload) #307
Conversation
em... ) |
41de003
to
56e54e8
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So I had an error in the log, in particular, 'always show sidebar' stoppedworking
So I think this requires more changes since we switched from the Tab type to oncompleted callback -- I committed Flow types to make the errors more obvious
const url = unwrap(tab.url); | ||
const tabId = unwrap(tab.id); | ||
const tabId = unwrap(tab.tabId); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hmm, looks like this is causing these for me
requesting! https://news.ycombinator.com/item?id=31224707
common.js:19 Uncaught (in promise) Error: undefined or null!
at unwrap (common.js:19:11)
at shouldProcessPage (background.js:583:62)
at openSidebar (background.js:702:24)
at eval (background.js:248:22)
|
||
// also if you, say, go to web.telegram.org it's gonna show multiple notifications due to redirect... but perhaps this can just be suppressed.. | ||
if (info.frameId !== 0) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should this check go first (before the URL check)? would make it faster and less logging
extension/src/background.js
Outdated
delete info.favIconUrl | ||
// | ||
console.debug('onUpdated %o %o', tab, info) | ||
// $FlowExpectedError |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah, looks like they are incomplete for these Shraymonks/flow-interfaces-chrome#1 (comment)
any updates with checking functionality here? |
ah have you seen CI logs for I think there are more changes that need to be done -- the object we are now passing into Haven't checked exactly what's missing though -- it may be possible it's just a few occasions of replacing promnesia/extension/src/background.js Lines 529 to 530 in f076f1c
|
so what's the status? will this PR be used somehow or you have found another solution? |
Hey, @yoyurec sorry for late reply -- as I mention in the comment #307 (comment) , there are still some outstanding issues -- but otherwise I haven't look at it |
closing in favor of #354 (thanks for the inspiration though :) ) |
Fixes #295
Fixes #177