Skip to content

Commit

Permalink
refactor: consistently use w shortcut for window
Browse files Browse the repository at this point in the history
[ci skip]
  • Loading branch information
mnater committed Nov 28, 2023
1 parent 274b8d3 commit 71d432b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Hyphenopoly.js
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@
if (counter[0] === 0) {
event.fire("hyphenopolyEnd");
if (!C.keepAlive) {
window.Hyphenopoly = null;
w.Hyphenopoly = null;
}
}
}
Expand Down Expand Up @@ -682,7 +682,7 @@
H.hide(0, null);
event.fire("hyphenopolyEnd");
if (!C.keepAlive) {
window.Hyphenopoly = null;
w.Hyphenopoly = null;
}
}
}
Expand Down Expand Up @@ -805,7 +805,7 @@
* @returns {undefined}
*/
function instantiateWasmEngine(heProm, lang) {
const wa = window.WebAssembly;
const wa = w.WebAssembly;

/**
* Register character substitutions in the .wasm-hyphenEngine
Expand Down

0 comments on commit 71d432b

Please sign in to comment.