Skip to content

Commit

Permalink
Fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
oxixes committed Jan 9, 2024
1 parent f7a8a95 commit bd1a72f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/wirecloud/platform/static/js/wirecloud/Widget.js
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@
};

const _createWrapper = function _createWrapper() {
let wrapperElement = document.createElement((this.meta.macversion > 1) ? 'wirecloud-widget' : 'iframe');
const wrapperElement = document.createElement((this.meta.macversion > 1) ? 'wirecloud-widget' : 'iframe');
if (this.wrapperElement) {
this.wrapperElement.parentNode.replaceChild(wrapperElement, this.wrapperElement);
}
Expand Down Expand Up @@ -214,7 +214,7 @@
Wirecloud.loadedScripts[js_file] = {loaded: false, elem: script, users: [this]};

const promise = new Promise((resolve, reject) => {
let on_resolve = () => {
const on_resolve = () => {
Wirecloud.loadedScripts[js_file].loaded = true;
resolve();
}
Expand Down Expand Up @@ -353,7 +353,7 @@
if (priv.status !== STATUS.RUNNING && priv.status !== STATUS.UNLOADING) {
return;
}

if (this.loaded_scripts.length !== 0) {
_unloadScripts.call(this);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
Wirecloud.loadedScripts[js_file] = {loaded: false, elem: script, users: [this]};

const promise = new Promise((resolve, reject) => {
let on_resolve = () => {
const on_resolve = () => {
Wirecloud.loadedScripts[js_file].loaded = true;
resolve();
}
Expand Down

0 comments on commit bd1a72f

Please sign in to comment.