Skip to content

Commit

Permalink
slight cleanup on enterInUrlbarToRefresh.uc.js
Browse files Browse the repository at this point in the history
  • Loading branch information
aminomancer committed Apr 24, 2022
1 parent 8ba3474 commit 82a7aea
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions JS/enterInUrlbarToRefresh.uc.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// ==UserScript==
// @name Hit Enter in Urlbar to Refresh
// @version 1.0
// @version 1.0.1
// @author aminomancer
// @homepage https://github.com/aminomancer/uc.css.js
// @description Due to Firefox's named anchor navigation system, you can't
Expand Down Expand Up @@ -65,7 +65,6 @@
let aAllowInheritPrincipal = !!params.allowInheritPrincipal;
let aForceAllowDataURI = params.forceAllowDataURI;
let aIsPrivate = params.private;
let aForceNonPrivate = params.forceNonPrivate;
let aAllowPopups = !!params.allowPopups;
let aUserContextId = params.userContextId;
let aIndicateErrorPageLoad = params.indicateErrorPageLoad;
Expand All @@ -76,13 +75,7 @@
let aForceAboutBlankViewerInCurrent = params.forceAboutBlankViewerInCurrent;
let aResolveOnContentBrowserReady = params.resolveOnContentBrowserCreated;

let w =
params.targetBrowser?.ownerGlobal ||
this.window.getTopWin({ forceNonPrivate: aForceNonPrivate });

if (!w) {
return;
}
let w = this.window;

function useOAForPrincipal(principal) {
if (principal && principal.isContentPrincipal) {
Expand Down

0 comments on commit 82a7aea

Please sign in to comment.