Browse Source

PDF.js version 1.8.467 - See mozilla/pdf.js@679ffc84f684872dd17aebbb0bc39dc7b6b8aabb

master v1.8.467
pdfjsbot 8 years ago
parent
commit
b60369b948
  1. 2
      bower.json
  2. 52
      build/pdf.combined.js
  3. 2
      build/pdf.combined.js.map
  4. 52
      build/pdf.js
  5. 2
      build/pdf.js.map
  6. 4
      build/pdf.min.js
  7. 44
      build/pdf.worker.js
  8. 2
      build/pdf.worker.js.map
  9. 4
      lib/display/api.js
  10. 4
      lib/display/global.js
  11. 4
      lib/pdf.js
  12. 4
      lib/pdf.worker.js
  13. 40
      lib/shared/compatibility.js
  14. 2
      package.json
  15. 40
      web/compatibility.js
  16. 2
      web/compatibility.js.map

2
bower.json

@ -1,6 +1,6 @@
{ {
"name": "pdfjs-dist", "name": "pdfjs-dist",
"version": "1.8.465", "version": "1.8.467",
"main": [ "main": [
"build/pdf.js", "build/pdf.js",
"build/pdf.worker.js" "build/pdf.worker.js"

52
build/pdf.combined.js

@ -13077,8 +13077,8 @@ var _UnsupportedManager = function UnsupportedManagerClosure() {
}(); }();
var version, build; var version, build;
{ {
exports.version = version = '1.8.465'; exports.version = version = '1.8.467';
exports.build = build = 'df4782da'; exports.build = build = '679ffc84';
} }
exports.getDocument = getDocument; exports.getDocument = getDocument;
exports.LoopbackPort = LoopbackPort; exports.LoopbackPort = LoopbackPort;
@ -28425,8 +28425,8 @@ if (!_util.globalScope.PDFJS) {
} }
var PDFJS = _util.globalScope.PDFJS; var PDFJS = _util.globalScope.PDFJS;
{ {
PDFJS.version = '1.8.465'; PDFJS.version = '1.8.467';
PDFJS.build = 'df4782da'; PDFJS.build = '679ffc84';
} }
PDFJS.pdfBug = false; PDFJS.pdfBug = false;
if (PDFJS.verbosity !== undefined) { if (PDFJS.verbosity !== undefined) {
@ -47043,8 +47043,8 @@ exports.TilingPattern = TilingPattern;
"use strict"; "use strict";
var pdfjsVersion = '1.8.465'; var pdfjsVersion = '1.8.467';
var pdfjsBuild = 'df4782da'; var pdfjsBuild = '679ffc84';
var pdfjsSharedUtil = __w_pdfjs_require__(0); var pdfjsSharedUtil = __w_pdfjs_require__(0);
var pdfjsDisplayGlobal = __w_pdfjs_require__(26); var pdfjsDisplayGlobal = __w_pdfjs_require__(26);
var pdfjsDisplayAPI = __w_pdfjs_require__(10); var pdfjsDisplayAPI = __w_pdfjs_require__(10);
@ -48472,81 +48472,81 @@ if (typeof PDFJS === 'undefined' || !PDFJS.compatibilityChecked) {
} }
return this.protocol + (this._isRelative ? '//' + authority + this.host : '') + this.pathname + this._query + this._fragment; return this.protocol + (this._isRelative ? '//' + authority + this.host : '') + this.pathname + this._query + this._fragment;
}, },
set href(href) { set href(value) {
clear.call(this); clear.call(this);
parse.call(this, href); parse.call(this, value);
}, },
get protocol() { get protocol() {
return this._scheme + ':'; return this._scheme + ':';
}, },
set protocol(protocol) { set protocol(value) {
if (this._isInvalid) { if (this._isInvalid) {
return; return;
} }
parse.call(this, protocol + ':', 'scheme start'); parse.call(this, value + ':', 'scheme start');
}, },
get host() { get host() {
return this._isInvalid ? '' : this._port ? this._host + ':' + this._port : this._host; return this._isInvalid ? '' : this._port ? this._host + ':' + this._port : this._host;
}, },
set host(host) { set host(value) {
if (this._isInvalid || !this._isRelative) { if (this._isInvalid || !this._isRelative) {
return; return;
} }
parse.call(this, host, 'host'); parse.call(this, value, 'host');
}, },
get hostname() { get hostname() {
return this._host; return this._host;
}, },
set hostname(hostname) { set hostname(value) {
if (this._isInvalid || !this._isRelative) { if (this._isInvalid || !this._isRelative) {
return; return;
} }
parse.call(this, hostname, 'hostname'); parse.call(this, value, 'hostname');
}, },
get port() { get port() {
return this._port; return this._port;
}, },
set port(port) { set port(value) {
if (this._isInvalid || !this._isRelative) { if (this._isInvalid || !this._isRelative) {
return; return;
} }
parse.call(this, port, 'port'); parse.call(this, value, 'port');
}, },
get pathname() { get pathname() {
return this._isInvalid ? '' : this._isRelative ? '/' + this._path.join('/') : this._schemeData; return this._isInvalid ? '' : this._isRelative ? '/' + this._path.join('/') : this._schemeData;
}, },
set pathname(pathname) { set pathname(value) {
if (this._isInvalid || !this._isRelative) { if (this._isInvalid || !this._isRelative) {
return; return;
} }
this._path = []; this._path = [];
parse.call(this, pathname, 'relative path start'); parse.call(this, value, 'relative path start');
}, },
get search() { get search() {
return this._isInvalid || !this._query || this._query === '?' ? '' : this._query; return this._isInvalid || !this._query || this._query === '?' ? '' : this._query;
}, },
set search(search) { set search(value) {
if (this._isInvalid || !this._isRelative) { if (this._isInvalid || !this._isRelative) {
return; return;
} }
this._query = '?'; this._query = '?';
if (search[0] === '?') { if (value[0] === '?') {
search = search.slice(1); value = value.slice(1);
} }
parse.call(this, search, 'query'); parse.call(this, value, 'query');
}, },
get hash() { get hash() {
return this._isInvalid || !this._fragment || this._fragment === '#' ? '' : this._fragment; return this._isInvalid || !this._fragment || this._fragment === '#' ? '' : this._fragment;
}, },
set hash(hash) { set hash(value) {
if (this._isInvalid) { if (this._isInvalid) {
return; return;
} }
this._fragment = '#'; this._fragment = '#';
if (hash[0] === '#') { if (value[0] === '#') {
hash = hash.slice(1); value = value.slice(1);
} }
parse.call(this, hash, 'fragment'); parse.call(this, value, 'fragment');
}, },
get origin() { get origin() {
var host; var host;

2
build/pdf.combined.js.map

File diff suppressed because one or more lines are too long

52
build/pdf.js

@ -3806,8 +3806,8 @@ var _UnsupportedManager = function UnsupportedManagerClosure() {
}(); }();
var version, build; var version, build;
{ {
exports.version = version = '1.8.465'; exports.version = version = '1.8.467';
exports.build = build = 'df4782da'; exports.build = build = '679ffc84';
} }
exports.getDocument = getDocument; exports.getDocument = getDocument;
exports.LoopbackPort = LoopbackPort; exports.LoopbackPort = LoopbackPort;
@ -5780,8 +5780,8 @@ if (!_util.globalScope.PDFJS) {
} }
var PDFJS = _util.globalScope.PDFJS; var PDFJS = _util.globalScope.PDFJS;
{ {
PDFJS.version = '1.8.465'; PDFJS.version = '1.8.467';
PDFJS.build = 'df4782da'; PDFJS.build = '679ffc84';
} }
PDFJS.pdfBug = false; PDFJS.pdfBug = false;
if (PDFJS.verbosity !== undefined) { if (PDFJS.verbosity !== undefined) {
@ -11320,8 +11320,8 @@ exports.TilingPattern = TilingPattern;
"use strict"; "use strict";
var pdfjsVersion = '1.8.465'; var pdfjsVersion = '1.8.467';
var pdfjsBuild = 'df4782da'; var pdfjsBuild = '679ffc84';
var pdfjsSharedUtil = __w_pdfjs_require__(0); var pdfjsSharedUtil = __w_pdfjs_require__(0);
var pdfjsDisplayGlobal = __w_pdfjs_require__(9); var pdfjsDisplayGlobal = __w_pdfjs_require__(9);
var pdfjsDisplayAPI = __w_pdfjs_require__(3); var pdfjsDisplayAPI = __w_pdfjs_require__(3);
@ -12749,81 +12749,81 @@ if (typeof PDFJS === 'undefined' || !PDFJS.compatibilityChecked) {
} }
return this.protocol + (this._isRelative ? '//' + authority + this.host : '') + this.pathname + this._query + this._fragment; return this.protocol + (this._isRelative ? '//' + authority + this.host : '') + this.pathname + this._query + this._fragment;
}, },
set href(href) { set href(value) {
clear.call(this); clear.call(this);
parse.call(this, href); parse.call(this, value);
}, },
get protocol() { get protocol() {
return this._scheme + ':'; return this._scheme + ':';
}, },
set protocol(protocol) { set protocol(value) {
if (this._isInvalid) { if (this._isInvalid) {
return; return;
} }
parse.call(this, protocol + ':', 'scheme start'); parse.call(this, value + ':', 'scheme start');
}, },
get host() { get host() {
return this._isInvalid ? '' : this._port ? this._host + ':' + this._port : this._host; return this._isInvalid ? '' : this._port ? this._host + ':' + this._port : this._host;
}, },
set host(host) { set host(value) {
if (this._isInvalid || !this._isRelative) { if (this._isInvalid || !this._isRelative) {
return; return;
} }
parse.call(this, host, 'host'); parse.call(this, value, 'host');
}, },
get hostname() { get hostname() {
return this._host; return this._host;
}, },
set hostname(hostname) { set hostname(value) {
if (this._isInvalid || !this._isRelative) { if (this._isInvalid || !this._isRelative) {
return; return;
} }
parse.call(this, hostname, 'hostname'); parse.call(this, value, 'hostname');
}, },
get port() { get port() {
return this._port; return this._port;
}, },
set port(port) { set port(value) {
if (this._isInvalid || !this._isRelative) { if (this._isInvalid || !this._isRelative) {
return; return;
} }
parse.call(this, port, 'port'); parse.call(this, value, 'port');
}, },
get pathname() { get pathname() {
return this._isInvalid ? '' : this._isRelative ? '/' + this._path.join('/') : this._schemeData; return this._isInvalid ? '' : this._isRelative ? '/' + this._path.join('/') : this._schemeData;
}, },
set pathname(pathname) { set pathname(value) {
if (this._isInvalid || !this._isRelative) { if (this._isInvalid || !this._isRelative) {
return; return;
} }
this._path = []; this._path = [];
parse.call(this, pathname, 'relative path start'); parse.call(this, value, 'relative path start');
}, },
get search() { get search() {
return this._isInvalid || !this._query || this._query === '?' ? '' : this._query; return this._isInvalid || !this._query || this._query === '?' ? '' : this._query;
}, },
set search(search) { set search(value) {
if (this._isInvalid || !this._isRelative) { if (this._isInvalid || !this._isRelative) {
return; return;
} }
this._query = '?'; this._query = '?';
if (search[0] === '?') { if (value[0] === '?') {
search = search.slice(1); value = value.slice(1);
} }
parse.call(this, search, 'query'); parse.call(this, value, 'query');
}, },
get hash() { get hash() {
return this._isInvalid || !this._fragment || this._fragment === '#' ? '' : this._fragment; return this._isInvalid || !this._fragment || this._fragment === '#' ? '' : this._fragment;
}, },
set hash(hash) { set hash(value) {
if (this._isInvalid) { if (this._isInvalid) {
return; return;
} }
this._fragment = '#'; this._fragment = '#';
if (hash[0] === '#') { if (value[0] === '#') {
hash = hash.slice(1); value = value.slice(1);
} }
parse.call(this, hash, 'fragment'); parse.call(this, value, 'fragment');
}, },
get origin() { get origin() {
var host; var host;

2
build/pdf.js.map

File diff suppressed because one or more lines are too long

4
build/pdf.min.js vendored

File diff suppressed because one or more lines are too long

44
build/pdf.worker.js vendored

@ -40317,8 +40317,8 @@ exports.Type1Parser = Type1Parser;
"use strict"; "use strict";
var pdfjsVersion = '1.8.465'; var pdfjsVersion = '1.8.467';
var pdfjsBuild = 'df4782da'; var pdfjsBuild = '679ffc84';
var pdfjsCoreWorker = __w_pdfjs_require__(8); var pdfjsCoreWorker = __w_pdfjs_require__(8);
{ {
__w_pdfjs_require__(19); __w_pdfjs_require__(19);
@ -41715,81 +41715,81 @@ if (typeof PDFJS === 'undefined' || !PDFJS.compatibilityChecked) {
} }
return this.protocol + (this._isRelative ? '//' + authority + this.host : '') + this.pathname + this._query + this._fragment; return this.protocol + (this._isRelative ? '//' + authority + this.host : '') + this.pathname + this._query + this._fragment;
}, },
set href(href) { set href(value) {
clear.call(this); clear.call(this);
parse.call(this, href); parse.call(this, value);
}, },
get protocol() { get protocol() {
return this._scheme + ':'; return this._scheme + ':';
}, },
set protocol(protocol) { set protocol(value) {
if (this._isInvalid) { if (this._isInvalid) {
return; return;
} }
parse.call(this, protocol + ':', 'scheme start'); parse.call(this, value + ':', 'scheme start');
}, },
get host() { get host() {
return this._isInvalid ? '' : this._port ? this._host + ':' + this._port : this._host; return this._isInvalid ? '' : this._port ? this._host + ':' + this._port : this._host;
}, },
set host(host) { set host(value) {
if (this._isInvalid || !this._isRelative) { if (this._isInvalid || !this._isRelative) {
return; return;
} }
parse.call(this, host, 'host'); parse.call(this, value, 'host');
}, },
get hostname() { get hostname() {
return this._host; return this._host;
}, },
set hostname(hostname) { set hostname(value) {
if (this._isInvalid || !this._isRelative) { if (this._isInvalid || !this._isRelative) {
return; return;
} }
parse.call(this, hostname, 'hostname'); parse.call(this, value, 'hostname');
}, },
get port() { get port() {
return this._port; return this._port;
}, },
set port(port) { set port(value) {
if (this._isInvalid || !this._isRelative) { if (this._isInvalid || !this._isRelative) {
return; return;
} }
parse.call(this, port, 'port'); parse.call(this, value, 'port');
}, },
get pathname() { get pathname() {
return this._isInvalid ? '' : this._isRelative ? '/' + this._path.join('/') : this._schemeData; return this._isInvalid ? '' : this._isRelative ? '/' + this._path.join('/') : this._schemeData;
}, },
set pathname(pathname) { set pathname(value) {
if (this._isInvalid || !this._isRelative) { if (this._isInvalid || !this._isRelative) {
return; return;
} }
this._path = []; this._path = [];
parse.call(this, pathname, 'relative path start'); parse.call(this, value, 'relative path start');
}, },
get search() { get search() {
return this._isInvalid || !this._query || this._query === '?' ? '' : this._query; return this._isInvalid || !this._query || this._query === '?' ? '' : this._query;
}, },
set search(search) { set search(value) {
if (this._isInvalid || !this._isRelative) { if (this._isInvalid || !this._isRelative) {
return; return;
} }
this._query = '?'; this._query = '?';
if (search[0] === '?') { if (value[0] === '?') {
search = search.slice(1); value = value.slice(1);
} }
parse.call(this, search, 'query'); parse.call(this, value, 'query');
}, },
get hash() { get hash() {
return this._isInvalid || !this._fragment || this._fragment === '#' ? '' : this._fragment; return this._isInvalid || !this._fragment || this._fragment === '#' ? '' : this._fragment;
}, },
set hash(hash) { set hash(value) {
if (this._isInvalid) { if (this._isInvalid) {
return; return;
} }
this._fragment = '#'; this._fragment = '#';
if (hash[0] === '#') { if (value[0] === '#') {
hash = hash.slice(1); value = value.slice(1);
} }
parse.call(this, hash, 'fragment'); parse.call(this, value, 'fragment');
}, },
get origin() { get origin() {
var host; var host;

2
build/pdf.worker.js.map vendored

File diff suppressed because one or more lines are too long

4
lib/display/api.js

@ -1443,8 +1443,8 @@ var _UnsupportedManager = function UnsupportedManagerClosure() {
}(); }();
var version, build; var version, build;
{ {
exports.version = version = '1.8.465'; exports.version = version = '1.8.467';
exports.build = build = 'df4782da'; exports.build = build = '679ffc84';
} }
exports.getDocument = getDocument; exports.getDocument = getDocument;
exports.LoopbackPort = LoopbackPort; exports.LoopbackPort = LoopbackPort;

4
lib/display/global.js

@ -39,8 +39,8 @@ if (!_util.globalScope.PDFJS) {
} }
var PDFJS = _util.globalScope.PDFJS; var PDFJS = _util.globalScope.PDFJS;
{ {
PDFJS.version = '1.8.465'; PDFJS.version = '1.8.467';
PDFJS.build = 'df4782da'; PDFJS.build = '679ffc84';
} }
PDFJS.pdfBug = false; PDFJS.pdfBug = false;
if (PDFJS.verbosity !== undefined) { if (PDFJS.verbosity !== undefined) {

4
lib/pdf.js

@ -14,8 +14,8 @@
*/ */
'use strict'; 'use strict';
var pdfjsVersion = '1.8.465'; var pdfjsVersion = '1.8.467';
var pdfjsBuild = 'df4782da'; var pdfjsBuild = '679ffc84';
var pdfjsSharedUtil = require('./shared/util.js'); var pdfjsSharedUtil = require('./shared/util.js');
var pdfjsDisplayGlobal = require('./display/global.js'); var pdfjsDisplayGlobal = require('./display/global.js');
var pdfjsDisplayAPI = require('./display/api.js'); var pdfjsDisplayAPI = require('./display/api.js');

4
lib/pdf.worker.js vendored

@ -14,8 +14,8 @@
*/ */
'use strict'; 'use strict';
var pdfjsVersion = '1.8.465'; var pdfjsVersion = '1.8.467';
var pdfjsBuild = 'df4782da'; var pdfjsBuild = '679ffc84';
var pdfjsCoreWorker = require('./core/worker.js'); var pdfjsCoreWorker = require('./core/worker.js');
{ {
require('./core/network.js'); require('./core/network.js');

40
lib/shared/compatibility.js

@ -1397,81 +1397,81 @@ if (typeof PDFJS === 'undefined' || !PDFJS.compatibilityChecked) {
} }
return this.protocol + (this._isRelative ? '//' + authority + this.host : '') + this.pathname + this._query + this._fragment; return this.protocol + (this._isRelative ? '//' + authority + this.host : '') + this.pathname + this._query + this._fragment;
}, },
set href(href) { set href(value) {
clear.call(this); clear.call(this);
parse.call(this, href); parse.call(this, value);
}, },
get protocol() { get protocol() {
return this._scheme + ':'; return this._scheme + ':';
}, },
set protocol(protocol) { set protocol(value) {
if (this._isInvalid) { if (this._isInvalid) {
return; return;
} }
parse.call(this, protocol + ':', 'scheme start'); parse.call(this, value + ':', 'scheme start');
}, },
get host() { get host() {
return this._isInvalid ? '' : this._port ? this._host + ':' + this._port : this._host; return this._isInvalid ? '' : this._port ? this._host + ':' + this._port : this._host;
}, },
set host(host) { set host(value) {
if (this._isInvalid || !this._isRelative) { if (this._isInvalid || !this._isRelative) {
return; return;
} }
parse.call(this, host, 'host'); parse.call(this, value, 'host');
}, },
get hostname() { get hostname() {
return this._host; return this._host;
}, },
set hostname(hostname) { set hostname(value) {
if (this._isInvalid || !this._isRelative) { if (this._isInvalid || !this._isRelative) {
return; return;
} }
parse.call(this, hostname, 'hostname'); parse.call(this, value, 'hostname');
}, },
get port() { get port() {
return this._port; return this._port;
}, },
set port(port) { set port(value) {
if (this._isInvalid || !this._isRelative) { if (this._isInvalid || !this._isRelative) {
return; return;
} }
parse.call(this, port, 'port'); parse.call(this, value, 'port');
}, },
get pathname() { get pathname() {
return this._isInvalid ? '' : this._isRelative ? '/' + this._path.join('/') : this._schemeData; return this._isInvalid ? '' : this._isRelative ? '/' + this._path.join('/') : this._schemeData;
}, },
set pathname(pathname) { set pathname(value) {
if (this._isInvalid || !this._isRelative) { if (this._isInvalid || !this._isRelative) {
return; return;
} }
this._path = []; this._path = [];
parse.call(this, pathname, 'relative path start'); parse.call(this, value, 'relative path start');
}, },
get search() { get search() {
return this._isInvalid || !this._query || this._query === '?' ? '' : this._query; return this._isInvalid || !this._query || this._query === '?' ? '' : this._query;
}, },
set search(search) { set search(value) {
if (this._isInvalid || !this._isRelative) { if (this._isInvalid || !this._isRelative) {
return; return;
} }
this._query = '?'; this._query = '?';
if (search[0] === '?') { if (value[0] === '?') {
search = search.slice(1); value = value.slice(1);
} }
parse.call(this, search, 'query'); parse.call(this, value, 'query');
}, },
get hash() { get hash() {
return this._isInvalid || !this._fragment || this._fragment === '#' ? '' : this._fragment; return this._isInvalid || !this._fragment || this._fragment === '#' ? '' : this._fragment;
}, },
set hash(hash) { set hash(value) {
if (this._isInvalid) { if (this._isInvalid) {
return; return;
} }
this._fragment = '#'; this._fragment = '#';
if (hash[0] === '#') { if (value[0] === '#') {
hash = hash.slice(1); value = value.slice(1);
} }
parse.call(this, hash, 'fragment'); parse.call(this, value, 'fragment');
}, },
get origin() { get origin() {
var host; var host;

2
package.json

@ -1,6 +1,6 @@
{ {
"name": "pdfjs-dist", "name": "pdfjs-dist",
"version": "1.8.465", "version": "1.8.467",
"main": "build/pdf.js", "main": "build/pdf.js",
"description": "Generic build of Mozilla's PDF.js library.", "description": "Generic build of Mozilla's PDF.js library.",
"keywords": [ "keywords": [

40
web/compatibility.js

@ -1481,81 +1481,81 @@ if (typeof PDFJS === 'undefined' || !PDFJS.compatibilityChecked) {
} }
return this.protocol + (this._isRelative ? '//' + authority + this.host : '') + this.pathname + this._query + this._fragment; return this.protocol + (this._isRelative ? '//' + authority + this.host : '') + this.pathname + this._query + this._fragment;
}, },
set href(href) { set href(value) {
clear.call(this); clear.call(this);
parse.call(this, href); parse.call(this, value);
}, },
get protocol() { get protocol() {
return this._scheme + ':'; return this._scheme + ':';
}, },
set protocol(protocol) { set protocol(value) {
if (this._isInvalid) { if (this._isInvalid) {
return; return;
} }
parse.call(this, protocol + ':', 'scheme start'); parse.call(this, value + ':', 'scheme start');
}, },
get host() { get host() {
return this._isInvalid ? '' : this._port ? this._host + ':' + this._port : this._host; return this._isInvalid ? '' : this._port ? this._host + ':' + this._port : this._host;
}, },
set host(host) { set host(value) {
if (this._isInvalid || !this._isRelative) { if (this._isInvalid || !this._isRelative) {
return; return;
} }
parse.call(this, host, 'host'); parse.call(this, value, 'host');
}, },
get hostname() { get hostname() {
return this._host; return this._host;
}, },
set hostname(hostname) { set hostname(value) {
if (this._isInvalid || !this._isRelative) { if (this._isInvalid || !this._isRelative) {
return; return;
} }
parse.call(this, hostname, 'hostname'); parse.call(this, value, 'hostname');
}, },
get port() { get port() {
return this._port; return this._port;
}, },
set port(port) { set port(value) {
if (this._isInvalid || !this._isRelative) { if (this._isInvalid || !this._isRelative) {
return; return;
} }
parse.call(this, port, 'port'); parse.call(this, value, 'port');
}, },
get pathname() { get pathname() {
return this._isInvalid ? '' : this._isRelative ? '/' + this._path.join('/') : this._schemeData; return this._isInvalid ? '' : this._isRelative ? '/' + this._path.join('/') : this._schemeData;
}, },
set pathname(pathname) { set pathname(value) {
if (this._isInvalid || !this._isRelative) { if (this._isInvalid || !this._isRelative) {
return; return;
} }
this._path = []; this._path = [];
parse.call(this, pathname, 'relative path start'); parse.call(this, value, 'relative path start');
}, },
get search() { get search() {
return this._isInvalid || !this._query || this._query === '?' ? '' : this._query; return this._isInvalid || !this._query || this._query === '?' ? '' : this._query;
}, },
set search(search) { set search(value) {
if (this._isInvalid || !this._isRelative) { if (this._isInvalid || !this._isRelative) {
return; return;
} }
this._query = '?'; this._query = '?';
if (search[0] === '?') { if (value[0] === '?') {
search = search.slice(1); value = value.slice(1);
} }
parse.call(this, search, 'query'); parse.call(this, value, 'query');
}, },
get hash() { get hash() {
return this._isInvalid || !this._fragment || this._fragment === '#' ? '' : this._fragment; return this._isInvalid || !this._fragment || this._fragment === '#' ? '' : this._fragment;
}, },
set hash(hash) { set hash(value) {
if (this._isInvalid) { if (this._isInvalid) {
return; return;
} }
this._fragment = '#'; this._fragment = '#';
if (hash[0] === '#') { if (value[0] === '#') {
hash = hash.slice(1); value = value.slice(1);
} }
parse.call(this, hash, 'fragment'); parse.call(this, value, 'fragment');
}, },
get origin() { get origin() {
var host; var host;

2
web/compatibility.js.map

File diff suppressed because one or more lines are too long
Loading…
Cancel
Save