@@ -306,6 +306,10 @@ function mainLoadUrl() {
function mainToMaxEvent() {
setInterval(function() {
+
+ if (mainWindow == null || mainWindow == undefined) {
+ return;
+ }
let mainToMax = CommonVar.find().cacheGetOrUpdate('get', 'mainToMax');