Skip to content

Commit

Permalink
Merge branch 'master' into download-progress
Browse files Browse the repository at this point in the history
  • Loading branch information
StefanVukovic99 authored Jul 18, 2024
2 parents f0391b9 + 60b0a39 commit c1a189a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ext/js/app/popup.js
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,9 @@ export class Popup extends EventDispatcher {
async setContentScale(scale) {
this._contentScale = scale;
this._frame.style.fontSize = `${scale}px`;
await this._invokeSafe('displaySetContentScale', {scale});
if (this._frameClient !== null && this._frameClient.isConnected() && this._frame.contentWindow !== null) {
await this._invokeSafe('displaySetContentScale', {scale});
}
}

/**
Expand Down

0 comments on commit c1a189a

Please sign in to comment.