-
Notifications
You must be signed in to change notification settings - Fork 24
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
Don't let toast elapse in background in some browsers #7741
Conversation
@@ -700,11 +700,11 @@ async function applyLayerState(stateByLayer: UrlStateByLayer) { | |||
// The name of the layer could have changed if a volume tracing was created from a viewed annotation | |||
effectiveLayerName = getLayerByName(dataset, layerName, true).name; | |||
} catch (e) { | |||
console.error(e); |
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.
In cases like this I didnt omit the separate log because Error not only has a message, but also a type, and I didnt want that to be omitted. Let me know if you think I should change that :)
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.
nice :) I left two small suggestions.
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.
sweet :)
URL of deployed dev instance (used for testing):
Steps to test:
- upload a larger dataset and switch the tab
- wait until the upload is done for a while
- go back to the WK tab and make sure both toasts are shown at least for a very short time (there should be at least two toasts after switching back)
Issues:
(Please delete unneeded items, merge only when none are left open)