mirror of
https://github.com/bitwarden/browser
synced 2025-12-11 13:53:34 +00:00
Check that self is undefined instead of window (#8940)
This commit is contained in:
@@ -10,7 +10,7 @@ import { CryptoService } from "../abstractions/crypto.service";
|
||||
import { EncryptService } from "../abstractions/encrypt.service";
|
||||
import { I18nService } from "../abstractions/i18n.service";
|
||||
|
||||
const nodeURL = typeof window === "undefined" ? require("url") : null;
|
||||
const nodeURL = typeof self === "undefined" ? require("url") : null;
|
||||
|
||||
declare global {
|
||||
/* eslint-disable-next-line no-var */
|
||||
|
||||
Reference in New Issue
Block a user