Ignore getZoom errors (#604)
This commit is contained in:
parent
b612bd8b8d
commit
b4a617cac3
@ -65,8 +65,12 @@ class Frontend {
|
|||||||
async prepare() {
|
async prepare() {
|
||||||
try {
|
try {
|
||||||
await this.updateOptions();
|
await this.updateOptions();
|
||||||
const {zoomFactor} = await api.getZoom();
|
try {
|
||||||
this._pageZoomFactor = zoomFactor;
|
const {zoomFactor} = await api.getZoom();
|
||||||
|
this._pageZoomFactor = zoomFactor;
|
||||||
|
} catch (e) {
|
||||||
|
// Ignore exceptions which may occur due to being on an unsupported page (e.g. about:blank)
|
||||||
|
}
|
||||||
|
|
||||||
window.addEventListener('resize', this._onResize.bind(this), false);
|
window.addEventListener('resize', this._onResize.bind(this), false);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user