Created
March 20, 2020 05:14
-
-
Save yuiAs/7065cee87d84781544aea5dd9afe72ea to your computer and use it in GitHub Desktop.
グラブルでフォーカス死ぬとMuteされるのを阻止
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| window.addEventListener('load', function() { | |
| const names = [ 'blur' ];//[ 'blur', 'pagehide', 'unload', 'beforeunload' ]; | |
| for (const v of names) { | |
| window.addEventListener(v, function(event) { // ignored this warning | |
| if (window.Game.setting.sound_flag != 0) { | |
| event.stopImmediatePropagation(); | |
| } | |
| }, true) | |
| } | |
| }) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment