Skip to content

Commit 0fab6f4

Browse files
committed
fix: live preview status banner shouldnt come in custom server previews
1 parent b7af56e commit 0fab6f4

File tree

1 file changed

+4
-1
lines changed
  • src/extensionsIntegrated/Phoenix-live-preview

1 file changed

+4
-1
lines changed

src/extensionsIntegrated/Phoenix-live-preview/main.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1098,6 +1098,7 @@ define(function (require, exports, module) {
10981098
*/
10991099
async function _openLivePreviewURL(_event, previewDetails) {
11001100
if(LivePreviewSettings.isUsingCustomServer()){
1101+
_hideOverlay();
11011102
return;
11021103
}
11031104
_loadPreview(true);
@@ -1344,7 +1345,9 @@ define(function (require, exports, module) {
13441345
});
13451346

13461347
MultiBrowserLiveDev.on(MultiBrowserLiveDev.EVENT_STATUS_CHANGE, function(event, status) {
1347-
if (status === MultiBrowserLiveDev.STATUS_CONNECTING) {
1348+
if(LivePreviewSettings.isUsingCustomServer()){
1349+
_hideOverlay();
1350+
} else if (status === MultiBrowserLiveDev.STATUS_CONNECTING) {
13481351
_handleOverlay(Strings.LIVE_DEV_STATUS_TIP_PROGRESS1, status);
13491352
} else if (status === MultiBrowserLiveDev.STATUS_SYNC_ERROR) {
13501353
_handleOverlay(Strings.LIVE_DEV_STATUS_TIP_SYNC_ERROR, status);

0 commit comments

Comments
 (0)