From 69c38a75cc0dd212026f21c1ecf356c4bb835c5a Mon Sep 17 00:00:00 2001 From: pacien Date: Thu, 19 Jul 2018 19:45:25 +0200 Subject: Check popup opening --- pointless/viewer/stage.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'pointless/viewer') diff --git a/pointless/viewer/stage.js b/pointless/viewer/stage.js index f8d6e09..117b0af 100644 --- a/pointless/viewer/stage.js +++ b/pointless/viewer/stage.js @@ -11,17 +11,17 @@ class Stage { constructor(onReady, onNext, onPrevious) { this.onNext = onNext; this.onPrevious = onPrevious; - this.projector = window.open(window.location.href); this.audienceScreen = null; this.presenterScreen = null; - this._setMessage(window, "Please allow pop-ups on this page"); + this.projector = window.open(window.location.href); + if (this.projector == null) + alert("Please allow pop-ups, then refresh this page."); var self = this; this.projector.addEventListener("load", function() { self.audienceScreen = new Screen(self.projector, false, false); self.presenterScreen = new Screen(window, true, true); - self._setMessage(window, null); self._watchDetach(); onReady(); }); -- cgit v1.2.3