mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-10-08 00:07:30 +09:00
Mass-replace global-scope let with var in Pale Moon and TychoAM
tag #155
This commit is contained in:
parent
7099ae78c1
commit
d5b0bc88af
62 changed files with 120 additions and 119 deletions
|
|
@ -34,8 +34,8 @@ const PRIORITY_DELTA = -10;
|
|||
|
||||
|
||||
// Variables
|
||||
let _lastFocusedWindow = null;
|
||||
let _windows = [];
|
||||
var _lastFocusedWindow = null;
|
||||
var _windows = [];
|
||||
|
||||
|
||||
// Exported symbol
|
||||
|
|
@ -64,7 +64,7 @@ function _handleEvent(aEvent) {
|
|||
|
||||
|
||||
// Methods that impact a browser. Put into single object for organization.
|
||||
let BrowserHelper = {
|
||||
var BrowserHelper = {
|
||||
onOpen: function NP_BH_onOpen(aBrowser) {
|
||||
// If the tab is in the focused window, leave priority as it is
|
||||
if (aBrowser.ownerDocument.defaultView != _lastFocusedWindow)
|
||||
|
|
@ -91,7 +91,7 @@ let BrowserHelper = {
|
|||
|
||||
|
||||
// Methods that impact a window. Put into single object for organization.
|
||||
let WindowHelper = {
|
||||
var WindowHelper = {
|
||||
addWindow: function NP_WH_addWindow(aWindow) {
|
||||
// Build internal data object
|
||||
_windows.push({ window: aWindow, lastSelectedBrowser: null });
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue