Parcourir la source

Do not insert snippet if permission id already set

Sebastián Katzer il y a 10 ans
Parent
commit
1fc8007f5c
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      scripts/windows/setToastCapable.js

+ 1 - 1
scripts/windows/setToastCapable.js

@@ -47,7 +47,7 @@ function replace (filename, to_replace, replace_with) {
     var data = fs.readFileSync(filename, 'utf8'),
         result;
 
-    if (data.indexOf(replace_with) > -1)
+    if (data.indexOf('ToastCapable') > -1)
         return;
 
     result = data.replace(new RegExp(to_replace, 'g'), replace_with);