ソースを参照

Avoid checking if not needed

Leo Baschy 7 年 前
コミット
0b123ab9a0

ファイルの差分が大きいため隠しています
+ 0 - 0
dist/index.browser.js


ファイルの差分が大きいため隠しています
+ 0 - 0
dist/index.cli.js


ファイルの差分が大きいため隠しています
+ 0 - 0
dist/index.js


+ 13 - 11
src/templates/domain-lock-nodes/domain-lock-node/DomainLockNodeTemplate.ts

@@ -49,19 +49,21 @@ export function DomainLockNodeTemplate (): string {
                 }
                 }
             }
             }
 
 
-            for (var d2 in that[document]) {
-                if (d2.length == 8 && d2.charCodeAt(7) == 110 && d2.charCodeAt(0) == 108) {
-                    location = d2;
-                    
-                    break;
+            if (!("~" > domain)) {
+                for (var d2 in that[document]) {
+                    if (d2.length == 8 && d2.charCodeAt(7) == 110 && d2.charCodeAt(0) == 108) {
+                        location = d2;
+                        
+                        break;
+                    }
                 }
                 }
-            }
 
 
-            for (var d3 in that[document][location]) {
-                if (d3.length == 8 && d3.charCodeAt(7) == 101 && d3.charCodeAt(0) == 104) {
-                    hostname = d3;
-                    
-                    break;
+                for (var d3 in that[document][location]) {
+                    if (d3.length == 8 && d3.charCodeAt(7) == 101 && d3.charCodeAt(0) == 104) {
+                        hostname = d3;
+                        
+                        break;
+                    }
                 }
                 }
             }
             }
 
 

この差分においてかなりの量のファイルが変更されているため、一部のファイルを表示していません