Skip to content

Commit

Permalink
v1.1.33
Browse files Browse the repository at this point in the history
  • Loading branch information
binary-person committed Mar 27, 2022
1 parent e6eb981 commit f34aa0d
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 5 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## v1.1.33

- delete hooks only after all fix function calls

## v1.1.32

- fix localStorage communication between windows by forcing them to read/write from realLocalStorage on every (get/set)Item call
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "rammerhead",
"version": "1.1.32",
"version": "1.1.33",
"description": "User friendly web proxy powered by testcafe-hammerhead",
"main": "src/index.js",
"scripts": {
Expand Down
6 changes: 4 additions & 2 deletions src/client/rammerhead.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@
fixElementGetter();
fixCrossWindowLocalStorage();

delete window.overrideGetProxyUrl;
delete window.overrideParseProxyUrl;
delete window.overrideIsCrossDomainWindows;

// other code if they want to also hook onto hammerhead start //
if (window.rammerheadStartListeners) {
for (const eachListener of window.rammerheadStartListeners) {
Expand Down Expand Up @@ -292,11 +296,9 @@
}
return replaceUrl(getProxyUrl$1(url, opts), (u) => shuffler.shuffle(u), true);
});
delete window.overrideGetProxyUrl;
window.overrideParseProxyUrl(function (url) {
return parseProxyUrl$1(replaceUrl(url, (u) => shuffler.unshuffle(u), false));
});
delete window.overrideParseProxyUrl;
}
function fixUrlRewrite() {
const port = location.port || (location.protocol === 'https:' ? '443' : '80');
Expand Down

0 comments on commit f34aa0d

Please sign in to comment.