Skip to content

Commit 454ea3c

Browse files
committed
fix: overlays appearing for custom servers which is not expected
1 parent 0907f1a commit 454ea3c

File tree

1 file changed

+6
-0
lines changed
  • src/extensionsIntegrated/Phoenix-live-preview

1 file changed

+6
-0
lines changed

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -214,6 +214,12 @@ define(function (require, exports, module) {
214214
// for connecting status, we delay showing the overlay by 3 seconds
215215
if(status === MultiBrowserLiveDev.STATUS_CONNECTING) {
216216
connectingOverlayTimer = setTimeout(() => {
217+
// before creating the overlays we need to do a recheck for custom server
218+
// cause project prefs sometimes takes time to reload which causes overlays to appear for custom servers
219+
if(LivePreviewSettings.isUsingCustomServer()){
220+
connectingOverlayTimer = null;
221+
return;
222+
}
217223
_createAndShowOverlay(textMessage, status);
218224
connectingOverlayTimer = null;
219225
}, connectingOverlayTimeDuration);

0 commit comments

Comments
 (0)