1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-18 01:03:35 +00:00

ns updates and overloads

This commit is contained in:
Kyle Spearrin
2018-10-13 00:11:06 -04:00
parent 9fa99f3a6e
commit c35576deb8
2 changed files with 7 additions and 2 deletions

View File

@@ -22,7 +22,7 @@ export class Utils {
Utils.isBrowser = typeof window !== 'undefined';
Utils.isNativeScript = !Utils.isNode && !Utils.isBrowser;
Utils.isMobileBrowser = Utils.isBrowser && this.isMobile(window);
Utils.global = Utils.isNativeScript ? new Object() : (Utils.isNode && !Utils.isBrowser ? global : window);
Utils.global = Utils.isNativeScript ? global : (Utils.isNode && !Utils.isBrowser ? global : window);
}
static fromB64ToArray(str: string): Uint8Array {