summaryrefslogtreecommitdiff
path: root/ext/js/app/popup.js
diff options
context:
space:
mode:
authorCashew <52880648+Scrub1492@users.noreply.github.com>2023-12-20 21:36:27 +0900
committerGitHub <noreply@github.com>2023-12-20 12:36:27 +0000
commit229f04ba358b3485fa7952088e03dad9e651bb23 (patch)
treedfb4a0431368e2067d7e6f5d9ce08bf88e1730cd /ext/js/app/popup.js
parent8b943cc97fab890085448122e7c13dd035d0e238 (diff)
rename variables (#409)
* rename variables * add comment to ambiguous variable * rename variables * add comments * rename functions
Diffstat (limited to 'ext/js/app/popup.js')
-rw-r--r--ext/js/app/popup.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/ext/js/app/popup.js b/ext/js/app/popup.js
index 45604a55..a0712604 100644
--- a/ext/js/app/popup.js
+++ b/ext/js/app/popup.js
@@ -417,7 +417,7 @@ export class Popup extends EventDispatcher {
_inject() {
let injectPromise = this._injectPromise;
if (injectPromise === null) {
- injectPromise = this._injectInner1();
+ injectPromise = this._injectInnerWrapper();
this._injectPromise = injectPromise;
injectPromise.then(
() => {
@@ -433,9 +433,9 @@ export class Popup extends EventDispatcher {
/**
* @returns {Promise<boolean>}
*/
- async _injectInner1() {
+ async _injectInnerWrapper() {
try {
- await this._injectInner2();
+ await this._injectInner();
return true;
} catch (e) {
this._resetFrame();
@@ -447,7 +447,7 @@ export class Popup extends EventDispatcher {
/**
* @returns {Promise<void>}
*/
- async _injectInner2() {
+ async _injectInner() {
if (this._optionsContext === null) {
throw new Error('Options not initialized');
}