Fix missing brackets

This commit is contained in:
Oliver Blanthorn 2020-06-19 15:31:23 +01:00
parent d5192f6dac
commit 1457219c23
No known key found for this signature in database
GPG key ID: 2BB8C36BB504BFF3

View file

@ -96,7 +96,7 @@ browser.runtime.onStartup.addListener(_ => {
} else {
native.run("hostname").then(hostname => {
for (const host of hosts) {
if (new RegExp(host).exec(hostname.content)) {
if ((new RegExp(host)).exec(hostname.content)) {
controller.acceptExCmd(aucmds[host])
}
}