flicker-alerts 1.0.29 → 1.0.30
Sign up to get free protection for your applications and to get access to all the features.
- package/index.js +12 -1
- package/package.json +2 -2
package/index.js
CHANGED
@@ -1,5 +1,16 @@
|
|
1
1
|
|
2
|
-
|
2
|
+
if (typeof document !== 'undefined') {
|
3
|
+
const existingLink = document.getElementById('dynamic-stylesheet');
|
4
|
+
if (!existingLink) {
|
5
|
+
const link = document.createElement('link');
|
6
|
+
link.id = 'dynamic-stylesheet';
|
7
|
+
link.rel = 'stylesheet';
|
8
|
+
link.type = 'text/css';
|
9
|
+
link.href = './style.css'; // Caminho para o seu arquivo CSS
|
10
|
+
document.head.appendChild(link);
|
11
|
+
}
|
12
|
+
}
|
13
|
+
|
3
14
|
|
4
15
|
const FlickerAlerts = {
|
5
16
|
showAlert: function ({ type, title, message, timer = 3000, position = 'top-right' }) {
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "flicker-alerts",
|
3
|
-
"version": "1.0.
|
3
|
+
"version": "1.0.30",
|
4
4
|
"description": "Biblioteca para alertas animados",
|
5
5
|
"main": "index.js",
|
6
6
|
"types": "index.d.ts",
|
@@ -16,6 +16,6 @@
|
|
16
16
|
"author": "https://www.linkedin.com/in/bruno-carneiro-9a51aa190/",
|
17
17
|
"license": "MIT",
|
18
18
|
"dependencies": {
|
19
|
-
"flicker-alerts": "^1.0.
|
19
|
+
"flicker-alerts": "^1.0.30"
|
20
20
|
}
|
21
21
|
}
|