fix: webview zoom level persistence on navigation (#40650)

This commit is contained in:
Shelley Vohr 2023-12-04 16:39:20 +01:00 committed by GitHub
parent 66b4b21646
commit 10a165a9ff
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 72 additions and 6 deletions

View file

@ -873,7 +873,13 @@ describe('node feature', () => {
});
};
process.once('unhandledRejection', () => done(new Error('catch block is delayed to next tick')));
let called = false;
process.once('unhandledRejection', () => {
if (called) return;
done(new Error('catch block is delayed to next tick'));
called = true;
});
setTimeout(() => {
f3().catch(() => done());