Browse Source

移除全局对象

gaoshuaixing 4 năm trước cách đây
mục cha
commit
597fd8c6cb
1 tập tin đã thay đổi với 0 bổ sung2 xóa
  1. 0 2
      app.js

+ 0 - 2
app.js

@@ -7,8 +7,6 @@
 class AppBootHook {
   constructor(app) {
     this.app = app;
-    global.OS_PLATFORM = process.platform;
-    global.IS_WIN = /^win/.test(process.platform);
   }
 
   configWillLoad() {