Skip to content

Commit

Permalink
prevent from triggering on own source code
Browse files Browse the repository at this point in the history
  • Loading branch information
JackRobbers committed Oct 28, 2020
1 parent 0bed613 commit 059b658
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -170,11 +170,15 @@ function displayResults(event) {
page = pages.filter((obj) => obj.name == page)[0];

pageNotEdited = false;
for (message of defaultMessages) {
if (this.responseText.includes(message)) {
pageNotEdited = true;
break;
}

// hack to avoid triggering on /software on our wiki and reading our own source code
if (!this.responseText.includes("WikiMate")) {
for (message of defaultMessages) {
if (this.responseText.includes(message)) {
pageNotEdited = true;
break;
}
}
}
if (pageNotEdited) {
p.innerText = "FAILURE: "
Expand Down

0 comments on commit 059b658

Please sign in to comment.