1
0
Fork 0

更新 'WebIDE/enhance.user.js'

master
502647092 2018-05-15 17:54:42 +08:00
parent b46bd76fa2
commit 20012c5d6f
1 changed files with 1 additions and 1 deletions

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);
}