We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 139a774 commit b661e3eCopy full SHA for b661e3e
src/notebooks/deepnote/bigNumberComparisonSettingsWebview.ts
@@ -118,9 +118,12 @@ export class BigNumberComparisonSettingsWebviewProvider {
118
this.disposables
119
);
120
121
- // Send initial data
122
- await this.sendLocStrings();
123
- await this.sendInitialData();
+ // Send initial data after a small delay to ensure webview is ready
+ // This is necessary because postMessage can fail if sent before the webview is fully loaded
+ setTimeout(async () => {
124
+ await this.sendLocStrings();
125
+ await this.sendInitialData();
126
+ }, 100);
127
128
// Return a promise that resolves when the user saves or cancels
129
return new Promise((resolve) => {
0 commit comments