mirror of
https://github.com/bitwarden/browser.git
synced 2024-11-18 11:05:41 +01:00
fix some things in platform utils
This commit is contained in:
parent
e871d4749b
commit
789bbe55eb
@ -167,7 +167,7 @@ export default class BrowserPlatformUtilsService implements PlatformUtilsService
|
||||
}
|
||||
|
||||
supportsU2f(win: Window): boolean {
|
||||
if (win != null && (win as any).u2f !== 'undefined') {
|
||||
if (win != null && (win as any).u2f != null) {
|
||||
return true;
|
||||
}
|
||||
|
||||
@ -190,8 +190,7 @@ export default class BrowserPlatformUtilsService implements PlatformUtilsService
|
||||
}
|
||||
|
||||
isDev(): boolean {
|
||||
// TODO?
|
||||
return true;
|
||||
return process.env.ENV === 'development';
|
||||
}
|
||||
|
||||
copyToClipboard(text: string, options?: any): void {
|
||||
|
Loading…
Reference in New Issue
Block a user