Skip to content

Commit

Permalink
worker: fix typo that skipped checking https: prefix!
Browse files Browse the repository at this point in the history
  • Loading branch information
ikreymer committed Nov 15, 2024
1 parent 1e50abe commit dacf415
Showing 1 changed file with 1 addition and 1 deletion.
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 dacf415

Please sign in to comment.