aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpacien2018-07-19 19:45:25 +0200
committerpacien2018-07-19 19:45:59 +0200
commit69c38a75cc0dd212026f21c1ecf356c4bb835c5a (patch)
tree49e92aaedea566988c33d9fc34fc9f911ae44792
parentc2abac11b73efceb02fa199c1deb2ab8d9190d92 (diff)
downloadbeamer-viewer-69c38a75cc0dd212026f21c1ecf356c4bb835c5a.tar.gz
Check popup opening
-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 });