@eduzz/apps-toolbar
Advanced tools
Comparing version 1.2.1 to 1.2.2
10
index.js
@@ -5,3 +5,3 @@ export default function EduzzToolbarSetup(params) { | ||
script.async = true; | ||
script.src = 'https://unpkg.com/@eduzz/apps-toolbar@^1.1.1/build/widget.js'; | ||
script.src = 'https://unpkgcom/@eduzz/apps-toolbar@^1.2.1/build/widget.js'; | ||
@@ -13,3 +13,9 @@ script.onload = () => { | ||
script.onerror = err => reject(err); | ||
script.onerror = err => { | ||
import('@eduzz/apps-toolbar/build/widget.js').then(() => { | ||
console.log('@eduzz/apps-toolbar: LOADING FROM FALLBACK') | ||
const toolbar = window.EduzzAppsToolbar(params); | ||
resolve(toolbar); | ||
}).catch(() => reject(err)); | ||
}; | ||
@@ -16,0 +22,0 @@ document.body.append(script); |
{ | ||
"name": "@eduzz/apps-toolbar", | ||
"version": "1.2.1", | ||
"version": "1.2.2", | ||
"private": false, | ||
@@ -5,0 +5,0 @@ "main": "./index.js", |
632491
2397