mirror of
https://github.com/bitwarden/browser
synced 2025-12-16 00:03:56 +00:00
polyfill DomParser with xmldom package
This commit is contained in:
@@ -32,6 +32,10 @@ import { UserService } from 'jslib/services/user.service';
|
||||
|
||||
import { Program } from './program';
|
||||
|
||||
// Polyfills
|
||||
// tslint:disable-next-line
|
||||
(global as any).DOMParser = require('xmldom').DOMParser;
|
||||
|
||||
export class Main {
|
||||
messagingService: NoopMessagingService;
|
||||
storageService: LowdbStorageService;
|
||||
|
||||
Reference in New Issue
Block a user