1
0
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:
Kyle Spearrin 2019-02-07 15:46:22 -05:00
parent 7ce8561f7a
commit c64fbda900
4 changed files with 12 additions and 2 deletions

2
jslib

@ -1 +1 @@
Subproject commit b01709240e4fc0674caea4edfebe5e46249c2bd2
Subproject commit dd46d5ecdd51f91dace5488272dd1f7bafd995c5

7
package-lock.json generated
View File

@ -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",

View File

@ -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"
}
}

View File

@ -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;