Skip to content

Commit

Permalink
worker: fix typo that skipped checking https: prefix! (#180)
Browse files Browse the repository at this point in the history
* worker: fix typo that skipped checking https: prefix!

* bump version to 3.8.6
  • Loading branch information
ikreymer authored Nov 15, 2024
1 parent 1e50abe commit ea5483e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@webrecorder/wombat",
"version": "3.8.5",
"version": "3.8.6",
"main": "index.js",
"license": "AGPL-3.0-or-later",
"author": "Ilya Kreymer, Webrecorder Software",
Expand Down
2 changes: 1 addition & 1 deletion src/wombatWorkers.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ WBWombat.prototype.noRewrite = function(url) {
* @return {boolean}
*/
WBWombat.prototype.isRelURL = function(url) {
return url.indexOf('/') === 0 || url.indexOf('http:') !== 0;
return url.indexOf('/') === 0 || (!url.startsWith('http:') && !url.startsWith('https:'));
};

/**
Expand Down

0 comments on commit ea5483e

Please sign in to comment.