mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-09 09:45:42 +02:00
Remove combineUrl
and replace it with new URL
.
This commit is contained in:
parent
e9dbb233aa
commit
a25c29d98d
5 changed files with 7 additions and 78 deletions
|
@ -295,15 +295,6 @@ var UNSUPPORTED_FEATURES = {
|
|||
font: 'font'
|
||||
};
|
||||
|
||||
// Combines two URLs. The baseUrl shall be absolute URL. If the url is an
|
||||
// absolute URL, it will be returned as is.
|
||||
function combineUrl(baseUrl, url) {
|
||||
if (!url) {
|
||||
return baseUrl;
|
||||
}
|
||||
return new URL(url, baseUrl).href;
|
||||
}
|
||||
|
||||
// Checks if URLs have the same origin. For non-HTTP based URLs, returns false.
|
||||
function isSameOrigin(baseUrl, otherUrl) {
|
||||
try {
|
||||
|
@ -2338,7 +2329,6 @@ exports.arrayByteLength = arrayByteLength;
|
|||
exports.arraysToBytes = arraysToBytes;
|
||||
exports.assert = assert;
|
||||
exports.bytesToString = bytesToString;
|
||||
exports.combineUrl = combineUrl;
|
||||
exports.createBlob = createBlob;
|
||||
exports.createPromiseCapability = createPromiseCapability;
|
||||
exports.createObjectURL = createObjectURL;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue