Make vault URL check more concise (#2361)

This commit is contained in:
Anton 2022-02-14 02:33:58 +01:00 committed by GitHub
parent fb850875c0
commit c6926614b8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}