Skip to content

Commit

Permalink
fix: on boot, the live preview panel doesnt show up
Browse files Browse the repository at this point in the history
  • Loading branch information
abose committed Jan 10, 2024
1 parent 3a8762c commit 18bb9ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/extensionsIntegrated/Phoenix-live-preview/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -471,7 +471,7 @@ define(function (require, exports, module) {
StaticServer.on(StaticServer.EVENT_SERVER_READY, function (_evt, event) {
// We always show the live preview panel on startup if there is a preview file
StaticServer.getPreviewDetails().then(previewDetails =>{
if(previewDetails.filePath && !panelShownOnce){
if(previewDetails.URL && !panelShownOnce){
// only show if there is some file to preview and not the default no-preview preview on startup
_setPanelVisibility(true);
}
Expand Down

0 comments on commit 18bb9ac

Please sign in to comment.