Skip to content

Commit

Permalink
Polyfill 'whatwg-url' instead of native URL class
Browse files Browse the repository at this point in the history
  • Loading branch information
saki7 committed Nov 10, 2017
1 parent 2508e80 commit 3ba5fcf
Show file tree
Hide file tree
Showing 4 changed files with 41 additions and 1 deletion.
2 changes: 2 additions & 0 deletions js/crsearch/crsearch.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ import {IndexType as IType} from './index-type'
import {Database} from './database'
import {Index} from './index'

import {URL} from 'whatwg-url'


class CRSearch {
static APPNAME = 'crsearch'
Expand Down
2 changes: 2 additions & 0 deletions js/crsearch/database.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ import {Namespace} from './namespace'
import {Dictionary} from './dictionary'
import {Priority, SiteCategory} from './kunai-config'

import {URL} from 'whatwg-url'

import * as Query from './query'


Expand Down
35 changes: 35 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@
"font-awesome": "^4.7.0",
"jquery": "^3.2.1",
"marked": "^0.3.6",
"nagato": "^1.8.2"
"nagato": "^1.8.2",
"whatwg-url": "^6.3.0"
}
}

0 comments on commit 3ba5fcf

Please sign in to comment.