Lutz Roeder 3 anni fa
parent
commit
42f7ea1331
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      source/index.js

+ 1 - 1
source/index.js

@@ -27,7 +27,7 @@ host.BrowserHost = class {
             'platform': /(Mac|iPhone|iPod|iPad)/i.test(this._navigator.platform) ? 'darwin' : undefined,
             'menu': true
         };
-        if (/^\d\.\d\.\d$/.test(this.version)) {
+        if (!/^\d\.\d\.\d$/.test(this.version)) {
             throw new Error('Invalid version.');
         }
         this.window.require = (id) => {