summaryrefslogtreecommitdiff
path: root/ext/js/app/popup.js
diff options
context:
space:
mode:
authorJames Maa <jmaa@berkeley.edu>2024-05-31 08:06:52 -0700
committerGitHub <noreply@github.com>2024-05-31 15:06:52 +0000
commit76ca08bd59f0e8bfa1bb20ac813f48e7ab241265 (patch)
treebdba43d9ba704885383c7f308c6fe3f574c647c5 /ext/js/app/popup.js
parentb3f54747eb2694bdc90bce72e5532e99d374ef08 (diff)
Allow trailing commas in ESLint (#1013)
* Update comma-dangle rule * Fix dangling commas
Diffstat (limited to 'ext/js/app/popup.js')
-rw-r--r--ext/js/app/popup.js22
1 files changed, 11 insertions, 11 deletions
diff --git a/ext/js/app/popup.js b/ext/js/app/popup.js
index e9c37d00..75e2bd84 100644
--- a/ext/js/app/popup.js
+++ b/ext/js/app/popup.js
@@ -424,7 +424,7 @@ export class Popup extends EventDispatcher {
if (injectPromise !== this._injectPromise) { return; }
this._injectPromiseComplete = true;
},
- () => {}
+ () => {},
);
}
return injectPromise;
@@ -489,7 +489,7 @@ export class Popup extends EventDispatcher {
parentFrameId: this._frameId,
childrenSupported: this._childrenSupported,
scale: this._contentScale,
- optionsContext: this._optionsContext
+ optionsContext: this._optionsContext,
};
await this._invokeSafe('displayConfigure', configureParams);
}
@@ -699,7 +699,7 @@ export class Popup extends EventDispatcher {
return /** @type {import('display').DirectApiReturn<TName>} */ (await this._application.crossFrame.invoke(
this._frameClient.frameId,
'displayPopupMessage1',
- /** @type {import('display').DirectApiFrameClientMessageAny} */ (wrappedMessage)
+ /** @type {import('display').DirectApiFrameClientMessageAny} */ (wrappedMessage),
));
}
@@ -837,7 +837,7 @@ export class Popup extends EventDispatcher {
frameWidth,
viewport.left,
viewport.right,
- true
+ true,
);
const [top, height, below] = this._getConstrainedPositionBinary(
sourceRect.top - verticalOffset,
@@ -845,7 +845,7 @@ export class Popup extends EventDispatcher {
frameHeight,
viewport.top,
viewport.bottom,
- preferBelow
+ preferBelow,
);
return {left, top, width, height, after, below};
}
@@ -868,7 +868,7 @@ export class Popup extends EventDispatcher {
frameWidth,
viewport.left,
viewport.right,
- preferRight
+ preferRight,
);
const [top, height, below] = this._getConstrainedPosition(
sourceRect.bottom - verticalOffset,
@@ -876,7 +876,7 @@ export class Popup extends EventDispatcher {
frameHeight,
viewport.top,
viewport.bottom,
- true
+ true,
);
return {left, top, width, height, after, below};
}
@@ -984,7 +984,7 @@ export class Popup extends EventDispatcher {
left,
top,
right: left + width,
- bottom: top + height
+ bottom: top + height,
};
} else {
const scale = visualViewport.scale;
@@ -992,7 +992,7 @@ export class Popup extends EventDispatcher {
left: 0,
top: 0,
right: Math.max(left + width, width * scale),
- bottom: Math.max(top + height, height * scale)
+ bottom: Math.max(top + height, height * scale),
};
}
}
@@ -1001,7 +1001,7 @@ export class Popup extends EventDispatcher {
left: 0,
top: 0,
right: window.innerWidth,
- bottom: window.innerHeight
+ bottom: window.innerHeight,
};
}
@@ -1121,7 +1121,7 @@ export class Popup extends EventDispatcher {
left: rect.left * scale,
top: rect.top * scale,
right: rect.right * scale,
- bottom: rect.bottom * scale
+ bottom: rect.bottom * scale,
};
}
}