We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f2fbaae commit 1025a12Copy full SHA for 1025a12
simpletoast.js
@@ -8,13 +8,13 @@
8
const localToast = factory();
9
root.SimpleToast = localToast;
10
console.log(`SimpleToast(v${localToast.versionString}): Loaded`);
11
- // Apply to window if SimpleToast doesn't currently exist
12
- if (root !== window && !(boundToast instanceof localToast)) {
+ // Apply to window if SimpleToast doesn't exist or is outdated
+ if (root !== window && (!boundToast?.version || boundToast.version < localToast.version)) {
13
window.SimpleToast = localToast;
14
console.log(`SimpleToast(v${localToast.versionString}): Publicized`);
15
}
16
})(this, () => {
17
- const version = buildVersion(2, 0, 0);
+ const version = buildVersion(2, 0, 1);
18
const style = {
19
root: {
20
display: 'flex',
0 commit comments