1
0
Fork 0
mirror of https://github.com/futurepress/epub.js.git synced 2025-10-03 14:59:18 +02:00

Fix for URL const

This commit is contained in:
Fred Chasen 2017-10-03 17:35:53 -07:00
parent b815762282
commit 4f4a13fadb
2 changed files with 2 additions and 2 deletions

View file

@ -1,6 +1,6 @@
{
"name": "epubjs",
"version": "0.3.54",
"version": "0.3.55",
"description": "Parse and Render Epubs",
"main": "lib/index.js",
"module": "src/index.js",

View file

@ -3,7 +3,7 @@ const ELEMENT_NODE = 1;
const TEXT_NODE = 3;
const COMMENT_NODE = 8;
const DOCUMENT_NODE = 9;
const _URL = URL || (typeof window != "undefined" ? (window.URL || window.webkitURL || window.mozURL) : undefined);
const _URL = typeof URL != "undefined" ? URL : (typeof window != "undefined" ? (window.URL || window.webkitURL || window.mozURL) : undefined);
export function isElement(obj) {
return !!(obj && obj.nodeType == 1);