更新 'WebIDE/enhance.user.js'

This commit is contained in:
502647092 2018-05-15 17:54:42 +08:00
parent b46bd76fa2
commit 20012c5d6f

View File

@ -13,7 +13,7 @@
'use strict';
var id = setInterval(function (){
if (document.getElementsByClassName('ide-container')[0]) {
document.onbeforeunload = function () { return false; }
window.onbeforeunload = function () { return false; }
console.log('已阻止 Ctrl + W 关闭页面...')
clearInterval(id);
}