aboutsummaryrefslogtreecommitdiff
path: root/pointless
diff options
context:
space:
mode:
Diffstat (limited to 'pointless')
-rw-r--r--pointless/viewer/stage.js6
1 files changed, 3 insertions, 3 deletions
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 {
11 constructor(onReady, onNext, onPrevious) { 11 constructor(onReady, onNext, onPrevious) {
12 this.onNext = onNext; 12 this.onNext = onNext;
13 this.onPrevious = onPrevious; 13 this.onPrevious = onPrevious;
14 this.projector = window.open(window.location.href);
15 this.audienceScreen = null; 14 this.audienceScreen = null;
16 this.presenterScreen = null; 15 this.presenterScreen = null;
17 16
18 this._setMessage(window, "Please allow pop-ups on this page"); 17 this.projector = window.open(window.location.href);
18 if (this.projector == null)
19 alert("Please allow pop-ups, then refresh this page.");
19 20
20 var self = this; 21 var self = this;
21 this.projector.addEventListener("load", function() { 22 this.projector.addEventListener("load", function() {
22 self.audienceScreen = new Screen(self.projector, false, false); 23 self.audienceScreen = new Screen(self.projector, false, false);
23 self.presenterScreen = new Screen(window, true, true); 24 self.presenterScreen = new Screen(window, true, true);
24 self._setMessage(window, null);
25 self._watchDetach(); 25 self._watchDetach();
26 onReady(); 26 onReady();
27 }); 27 });