Skip to content

Commit

Permalink
Update ScreenCapture.js
Browse files Browse the repository at this point in the history
  • Loading branch information
boehlerlukas committed Oct 20, 2022
1 parent b6f118d commit 9c81df2
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/ScreenCapture.js
Original file line number Diff line number Diff line change
Expand Up @@ -479,7 +479,7 @@ const prepareScreenshotData = (remote) => {
baseElems[i].remove();
}

// Fix base node
// Adjust the base node
const baseUrl = window.location.href.substring(0, window.location.href.lastIndexOf("/"));
var newBaseUrl = baseUrl + "/";
if (existingBasePath) {
Expand All @@ -495,8 +495,6 @@ const prepareScreenshotData = (remote) => {
}
}

console.log("newBaseUrl", newBaseUrl);

const baseNode = window.document.createElement("base");
baseNode.href = newBaseUrl;
const head = clone.querySelector("head");
Expand Down

0 comments on commit 9c81df2

Please sign in to comment.