Jelajahi Sumber

移除全局对象

gaoshuaixing 4 tahun lalu
induk
melakukan
597fd8c6cb
1 mengubah file dengan 0 tambahan dan 2 penghapusan
  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() {