Skip to content

Commit 02328ee

Browse files
committed
ButterPop.js v1.0.1
Fixed minor bugs
1 parent 9c51c62 commit 02328ee

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,17 +51,17 @@ You can include ButterPop.js directly from a CDN:
5151
**jsDelivr:**
5252
```html
5353
<!-- CSS -->
54-
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected].0/butterpop.min.css">
54+
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected].1/butterpop.min.css">
5555

5656
<!-- JavaScript -->
57-
<script src="https://cdn.jsdelivr.net/npm/[email protected].0/butterpop.min.js"></script>
57+
<script src="https://cdn.jsdelivr.net/npm/[email protected].1/butterpop.min.js"></script>
5858
```
5959

6060

6161
**ES Module (for modern applications):**
6262
```html
6363
<script type="module">
64-
import ButterPop from 'https://cdn.jsdelivr.net/npm/[email protected].0/butterpop.esm.min.js';
64+
import ButterPop from 'https://cdn.jsdelivr.net/npm/[email protected].1/butterpop.esm.min.js';
6565
6666
// Your code here
6767
ButterPop.success('Hello from ES Module!');

butterpop.esm.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@ const addToastToDOM = (toast, container) => {
264264
};
265265

266266
// Remove toast from DOM
267-
const removeToast = (id) => {
267+
let removeToast = (id) => {
268268
const toastData = toastStorage.activeToasts.get(id);
269269
if (!toastData) return false;
270270

@@ -531,7 +531,7 @@ const injectCSS = () => {
531531
// Try to load the CSS file
532532
const link = document.createElement('link');
533533
link.rel = 'stylesheet';
534-
link.href = 'butterpop.css';
534+
link.href = 'https://cdn.jsdelivr.net/npm/butterpop@1.0.1/butterpop.min.css';
535535
link.setAttribute('data-butterpop-css', 'true');
536536
document.head.appendChild(link);
537537

butterpop.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@
280280
};
281281

282282
// Remove toast from DOM
283-
const removeToast = (id) => {
283+
let removeToast = (id) => {
284284
const toastData = toastStorage.activeToasts.get(id);
285285
if (!toastData) return false;
286286

@@ -547,7 +547,7 @@
547547
// Try to load the CSS file
548548
const link = document.createElement('link');
549549
link.rel = 'stylesheet';
550-
link.href = 'butterpop.css';
550+
link.href = 'https://cdn.jsdelivr.net/npm/butterpop@1.0.1/butterpop.min.css';
551551
link.setAttribute('data-butterpop-css', 'true');
552552
document.head.appendChild(link);
553553

0 commit comments

Comments
 (0)