Skip to content

Commit

Permalink
typo fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ikreymer committed Apr 8, 2024
1 parent 3764dbb commit 9984c7d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/wombat.js
Original file line number Diff line number Diff line change
Expand Up @@ -929,7 +929,7 @@ Wombat.prototype.getFinalUrl = function(useRel, mod, url) {
*/
Wombat.prototype.resolveRelUrl = function(url, doc) {
var docObj = this.$wbwindow.document;
if (doc && doc.baseURI && (doc.startsWith(this.HTTPS_PREFIX) || doc.startsWith(this.HTTP_PREFIX))) {
if (doc && doc.baseURI && (doc.baseURI.startsWith(this.HTTPS_PREFIX) || doc.baseURI.startsWith(this.HTTP_PREFIX))) {
docObj = doc;
}
var parser = this.makeParser(docObj.baseURI, docObj);
Expand Down

0 comments on commit 9984c7d

Please sign in to comment.