Skip to content

Commit

Permalink
Merge pull request #23 from Hobart2967/allow-multiple-markers
Browse files Browse the repository at this point in the history
feat: Allow multiple markers to be applied
  • Loading branch information
geovanneb authored Jan 31, 2025
2 parents e557fc8 + 46b3ad1 commit 79e9a62
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions app/scripts/modal.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,14 +65,12 @@ function _addEnvironmentLabel() {
if(CURRENT_LOCATION.indexOf(PLUGIN_STATE.strictList[i].address) > -1) {
CURRENT_CONFIG = PLUGIN_STATE.strictList[i];
_addMarker(CURRENT_CONFIG);
return;
}
}
for(var i = 0; i<PLUGIN_STATE.regexList.length; i++) {
if(PLUGIN_STATE.regexList[i].regex.test(CURRENT_DOMAIN)) {
CURRENT_CONFIG = PLUGIN_STATE.regexList[i];
_addMarker(CURRENT_CONFIG);
return;
}
}
});
Expand Down

0 comments on commit 79e9a62

Please sign in to comment.