mirror of
https://github.com/futurepress/epub.js.git
synced 2025-10-03 14:59:18 +02:00
Switch to URI.js for url parsing, basic replacement for Archived urls
This commit is contained in:
parent
af5583191e
commit
13467128e5
18 changed files with 2677 additions and 207 deletions
|
@ -1,4 +1,5 @@
|
|||
var RSVP = require('rsvp');
|
||||
var URI = require('urijs');
|
||||
var core = require('./core');
|
||||
|
||||
function request(url, type, withCredentials, headers) {
|
||||
|
@ -36,8 +37,8 @@ function request(url, type, withCredentials, headers) {
|
|||
|
||||
// If type isn't set, determine it from the file extension
|
||||
if(!type) {
|
||||
uri = core.uri(url);
|
||||
type = uri.extension;
|
||||
uri = URI(url);
|
||||
type = uri.suffix();
|
||||
}
|
||||
|
||||
if(type == 'blob'){
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue