Skip to content

Commit 4b1fe5b

Browse files
authored
Don't load the script twice
1 parent 30a1e9a commit 4b1fe5b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

simpletoast.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
* SimpleToast - A small library for toasts
33
*/
44
(() => {
5+
if (window.SimpleToast) return;
56
const style = {
67
root: {
78
display: 'flex',

0 commit comments

Comments
 (0)