Skip to content

Commit

Permalink
Use different onload method
Browse files Browse the repository at this point in the history
  • Loading branch information
cmdcolin committed Dec 17, 2018
1 parent 51deb47 commit 4be8015
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -68,7 +68,7 @@
"dojo-util": "^1.14.2",
"dojo-webpack-plugin": "^2.7.7",
"dojox": "^1.14.2",
"electron": "^3.0.0",
"electron": "^3.0.12",
"electron-packager": "^12.0.1",
"eslint": "^4.19.1",
"eslint-config-airbnb-base": "^12.1.0",
Expand Down
3 changes: 1 addition & 2 deletions src/JBrowse/main.js
Expand Up @@ -63,8 +63,7 @@ function (
},
electronData: queryParams.electronData || (Util.isElectron() && electronRequire('electron').remote.app.getPath('userData'))
};

window.addEventListener('load', () => {
dojo.addOnLoad(() => {
// see if we can load some configuration from the data-config attribute of our container
try {
let elementConfig = document.getElementById(config.containerID).getAttribute('data-config')
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Expand Up @@ -2789,10 +2789,10 @@ electron-to-chromium@^1.2.7:
resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.3.73.tgz#aa67787067d58cc3920089368b3b8d6fe0fc12f6"
integrity sha512-6PIg7v9zRoVGh6EheRF8h6Plti+3Yo/qtHobS4/Htyt53DNHmKKGFqSae1AIk0k1S4gCQvt7I2WgpbuZNcDY+g==

electron@^3.0.0:
version "3.0.6"
resolved "https://registry.yarnpkg.com/electron/-/electron-3.0.6.tgz#2d7b4ed521e90c69d83ffe5696db173b0e7b2473"
integrity sha512-MqwvA6IM0IDvUgPo/zHasmLMn3eYhMJ2I0qTNfQtxwqdoo762UlFS+upmMgcnCXPcGMGDWi3wtZhNir9nEw1kA==
electron@^3.0.12:
version "3.0.12"
resolved "https://registry.yarnpkg.com/electron/-/electron-3.0.12.tgz#7486ff1c60e9c22d8aadaee620695c42c9ddb2ac"
integrity sha512-stvGbqYzWv5qHHtjZZgA7gET3NPGLuxs68IHTrJqsqujQfXGkhMOh8tstpXl86kBdRpzZn7GaDlTWcgeFSmsPw==
dependencies:
"@types/node" "^8.0.24"
electron-download "^4.1.0"
Expand Down

0 comments on commit 4be8015

Please sign in to comment.