Browse Source

修复一处 Windows 下提示框的问题。

oldj 8 years ago
parent
commit
c5c43f5cc2
4 changed files with 109 additions and 82 deletions
  1. 96 80
      app/bundle.js
  2. 2 1
      app/server/apply.js
  3. 1 1
      app/version.js
  4. 10 0
      ui/events/alert.js

File diff suppressed because it is too large
+ 96 - 80
app/bundle.js


+ 2 - 1
app/server/apply.js

@@ -87,7 +87,8 @@ function apply_Win32 (content, callback) {
     console.log(e)
     let msg = e.message
     msg = `${msg}\n\n${lang.please_run_as_admin}`
-    alert(msg)
+    console.log(msg)
+    svr.broadcast('alert', msg)
     return
   }
 

+ 1 - 1
app/version.js

@@ -1 +1 @@
-exports.version = [3,3,0,5069];
+exports.version = [3,3,0,5070];

+ 10 - 0
ui/events/alert.js

@@ -0,0 +1,10 @@
+/**
+ * @author oldj
+ * @blog http://oldj.net
+ */
+
+'use strict';
+
+module.exports = (app, msg) => {
+  alert(msg)
+}

Some files were not shown because too many files changed in this diff