From c6926614b8f0f086adbf6c5c866edb30cbd3696d Mon Sep 17 00:00:00 2001 From: Anton Date: Mon, 14 Feb 2022 02:33:58 +0100 Subject: [PATCH] Make vault URL check more concise (#2361) --- src/content/notificationBar.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/content/notificationBar.ts b/src/content/notificationBar.ts index ecc6e61c92..2c38e8a40c 100644 --- a/src/content/notificationBar.ts +++ b/src/content/notificationBar.ts @@ -2,7 +2,7 @@ import AddLoginRuntimeMessage from "src/background/models/addLoginRuntimeMessage import ChangePasswordRuntimeMessage from "src/background/models/changePasswordRuntimeMessage"; document.addEventListener("DOMContentLoaded", (event) => { - if (window.location.hostname.indexOf("vault.bitwarden.com") > -1) { + if (window.location.hostname.endsWith("vault.bitwarden.com")) { return; }