浏览代码

Reload only if the service was launched

Amauri CHAMPEAUX 10 年之前
父节点
当前提交
ff0c52df50
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      tarteaucitron.js

+ 2 - 2
tarteaucitron.js

@@ -449,7 +449,7 @@ var tarteaucitron = {
                 service = s[tarteaucitron.job[index]];
                 key = service.key;
                 if (tarteaucitron.state[key] !== status) {
-                    if (status === false) {
+                    if (status === false && tarteaucitron.launch[key] === true) {
                         tarteaucitron.reloadThePage = true;
                     }
                     if (tarteaucitron.launch[key] !== true && status === true) {
@@ -471,7 +471,7 @@ var tarteaucitron = {
                 return;
             }
             
-            if (status === false) {
+            if (status === false && tarteaucitron.launch[key] === true) {
                 tarteaucitron.reloadThePage = true;
             }