Skip to content

Commit

Permalink
get themePrevix to get the correct div
Browse files Browse the repository at this point in the history
  • Loading branch information
offtherailz committed Apr 3, 2017
1 parent c8e8d2a commit ffcc66e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion web/client/epics/fullscreen.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
const screenfull = require('screenfull');
const {setControlProperty} = require('../actions/controls');
const {TOGGLE_FULLSCREEN} = require('../actions/fullscreen');
const ConfigUtils = require('../utils/ConfigUtils');
const Rx = require('rxjs');

const getFullScreenEvent = () => {
Expand All @@ -31,7 +32,7 @@ const getFullScreenEvent = () => {
*/
const toggleFullscreenEpic = action$ =>
action$.ofType(TOGGLE_FULLSCREEN).switchMap(action => {
const element = document.querySelector(action && action.querySelector || '.ms2 > div');
const element = document.querySelector(action && action.querySelector || ('.' + (ConfigUtils.getConfigProp('themePrefix') || 'ms2') + " > div"));
if (element && action.enable && screenfull.enabled) {
screenfull.request(element);

Expand Down

0 comments on commit ffcc66e

Please sign in to comment.