commandbar
Advanced tools
Comparing version 1.3.0 to 1.3.1
@@ -80,2 +80,4 @@ "use strict"; | ||
}; | ||
// eslint-disable-next-line @typescript-eslint/no-empty-function | ||
var loadOrg = function () { }; | ||
var loadLatest = function (org) { | ||
@@ -88,2 +90,3 @@ var src = getSrc(org); | ||
document.head.appendChild(el); | ||
window.removeEventListener('load', loadOrg, false); | ||
}; | ||
@@ -100,3 +103,4 @@ var DEFAULT_OPTS = { debug: false, version: '' }; | ||
exports.initProxy(); | ||
loadLatest(org); | ||
loadOrg = function () { return loadLatest(org); }; | ||
window.addEventListener('load', loadOrg, false); | ||
}; | ||
@@ -103,0 +107,0 @@ var presentSnippet = function (org) { |
{ | ||
"name": "commandbar", | ||
"version": "1.3.0", | ||
"version": "1.3.1", | ||
"description": "Javascript Utility for CommandBar", | ||
@@ -5,0 +5,0 @@ "main": "build/index.js", |
@@ -88,2 +88,5 @@ import { snippet } from './snippet'; | ||
// eslint-disable-next-line @typescript-eslint/no-empty-function | ||
let loadOrg = () => {}; | ||
const loadLatest = (org: string) => { | ||
@@ -97,2 +100,4 @@ const src = getSrc(org); | ||
document.head.appendChild(el); | ||
window.removeEventListener('load', loadOrg, false); | ||
}; | ||
@@ -114,3 +119,5 @@ | ||
loadLatest(org); | ||
loadOrg = () => loadLatest(org); | ||
window.addEventListener('load', loadOrg, false); | ||
}; | ||
@@ -117,0 +124,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
29718
573