Skip to content

Commit

Permalink
Prevent popup scaling from throwing errors constantly
Browse files Browse the repository at this point in the history
  • Loading branch information
Kuuuube committed Jul 17, 2024
1 parent 4e581e7 commit ba67a7d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ext/js/app/popup.js
Original file line number Diff line number Diff line change
Expand Up @@ -330,6 +330,7 @@ export class Popup extends EventDispatcher {
async setContentScale(scale) {
this._contentScale = scale;
this._frame.style.fontSize = `${scale}px`;
if (this._frameClient === null || !this._frameClient.isConnected() || this._frame.contentWindow === null) { return; }
await this._invokeSafe('displaySetContentScale', {scale});
}

Expand Down

0 comments on commit ba67a7d

Please sign in to comment.