Skip to content

Commit

Permalink
Fix (only in Firefox) js errors by gen_dashboard_... #8
Browse files Browse the repository at this point in the history
  • Loading branch information
modos189 committed Jul 4, 2019
1 parent 5e5f094 commit 6ac93c5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 0 additions & 1 deletion scripts/background.js
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,6 @@ function initialize() {
let iitc_version = data[channel+'_iitc_version'];
if ((status === undefined || status === true) && iitc_code !== undefined) {


let inject_iitc_code = preparationUserScript({'version': iitc_version, 'code': iitc_code});
injectUserScript(inject_iitc_code);

Expand Down
5 changes: 5 additions & 0 deletions scripts/loader.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
let loaded_plugins = [];

document.addEventListener("DOMContentLoaded", function() {
window.onload = function() {};
document.body.onload = function() {};
});

document.addEventListener('IITCButtonInitJS', function (e) {
let code = e.detail;

Expand Down

0 comments on commit 6ac93c5

Please sign in to comment.