mirror of
https://github.com/bitwarden/browser.git
synced 2024-11-27 12:36:14 +01:00
polyfill DomParser with xmldom package
This commit is contained in:
parent
7ce8561f7a
commit
c64fbda900
2
jslib
2
jslib
@ -1 +1 @@
|
||||
Subproject commit b01709240e4fc0674caea4edfebe5e46249c2bd2
|
||||
Subproject commit dd46d5ecdd51f91dace5488272dd1f7bafd995c5
|
7
package-lock.json
generated
7
package-lock.json
generated
@ -5691,7 +5691,7 @@
|
||||
},
|
||||
"wrap-ansi": {
|
||||
"version": "2.1.0",
|
||||
"resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-2.1.0.tgz",
|
||||
"resolved": "http://registry.npmjs.org/wrap-ansi/-/wrap-ansi-2.1.0.tgz",
|
||||
"integrity": "sha1-2Pw9KE3QV5T+hJc8rs3Rz4JP3YU=",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
@ -5742,6 +5742,11 @@
|
||||
"integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=",
|
||||
"dev": true
|
||||
},
|
||||
"xmldom": {
|
||||
"version": "0.1.27",
|
||||
"resolved": "https://registry.npmjs.org/xmldom/-/xmldom-0.1.27.tgz",
|
||||
"integrity": "sha1-1QH5ezvbQDr4757MIFcxh6rawOk="
|
||||
},
|
||||
"xtend": {
|
||||
"version": "4.0.1",
|
||||
"resolved": "https://registry.npmjs.org/xtend/-/xtend-4.0.1.tgz",
|
||||
|
@ -78,6 +78,7 @@
|
||||
"node-forge": "0.7.6",
|
||||
"papaparse": "4.6.0",
|
||||
"tldjs": "2.3.1",
|
||||
"xmldom": "0.1.27",
|
||||
"zxcvbn": "4.4.2"
|
||||
}
|
||||
}
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user