Ver Fonte

Do not insert snippet if permission id already set

Sebastián Katzer há 10 anos atrás
pai
commit
1fc8007f5c
1 ficheiros alterados com 1 adições e 1 exclusões
  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);