From 88704fd2891fc23e16bc4054af8aff987d3d4215 Mon Sep 17 00:00:00 2001 From: Pacien TRAN-GIRARD Date: Thu, 15 May 2014 16:11:59 +0200 Subject: Fix popup mode when opening a presentation in a new tab --- js/slide-controller.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'js/slide-controller.js') diff --git a/js/slide-controller.js b/js/slide-controller.js index bef37c4..2fb2560 100644 --- a/js/slide-controller.js +++ b/js/slide-controller.js @@ -12,14 +12,13 @@ this.mode = null; this.remoteSocket = null; - this.isPresenter = window.opener; - this.isController = window.opener; + this.isPresenter = false; + this.isController = false; this.keyLock = null; this.setup(); - } - + }; SlideController.MODES = ['local', 'remote', 'controller', 'presenter']; @@ -68,6 +67,7 @@ // Loading in the popup? Turn the presenter mode on. localPresenter.addEventListener('load', function(e) { + localPresenter.document.body.classList.add('popup'); localPresenter.document.body.classList.add('with-notes'); }.bind(this), false); -- cgit v1.2.3