Skip to content

Commit

Permalink
Merge pull request #50 from Lej77/unload-active-other-unloader
Browse files Browse the repository at this point in the history
Compatibility with other tab unloaders
  • Loading branch information
rNeomy committed May 22, 2018
2 parents 9aa31e1 + 94e4d30 commit 9d1c81e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion data/inject/top.js
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ var check = async(period, manual = false, bypass = false) => {
}
};

document.addEventListener('visibilitychange', () => check());
document.addEventListener('visibilitychange', () => setTimeout(check, 0));
// https://github.com/rNeomy/auto-tab-discard/issues/1
document.addEventListener('DOMContentLoaded', () => check());

Expand Down

0 comments on commit 9d1c81e

Please sign in to comment.