Skip to content

Commit ecd6be8

Browse files
JLargent42Jacob Largent
andauthored
fix(appcomposer): add refresh fallback (#1507)
Problem: If Composer fails to load, the user has to restart their IDE to be able to use Composer. Solution: This adds a basic retry when the user opens Composer and the page hasn't already been loaded. Co-authored-by: Jacob Largent <[email protected]>
1 parent b5c58c0 commit ecd6be8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/applicationcomposer/webviewManager.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ export class ApplicationComposerManager {
4343

4444
private getWebviewContent = () => {
4545
if (!this.webviewHtml) {
46+
void this.fetchWebviewHtml()
4647
return ''
4748
}
4849
const htmlFileSplit = this.webviewHtml.split('<head>')

0 commit comments

Comments
 (0)