From 664b707e5f965c33a1f78d6ab5312a25c7e4c3e1 Mon Sep 17 00:00:00 2001 From: Jachimike Onuoha Date: Mon, 29 Nov 2021 15:33:37 -0500 Subject: [PATCH] Added isFullscreen function to viewer.js --- src/viewer.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/viewer.js b/src/viewer.js index a879a0bd..2f0f6f12 100644 --- a/src/viewer.js +++ b/src/viewer.js @@ -1252,6 +1252,15 @@ $.extend( $.Viewer.prototype, $.EventSource.prototype, $.ControlDock.prototype, }, + // + /** + * @function + * @return {Boolean} returns true if the viewer is in fullscreen + */ + isFullScreen: function () { + return $.setFullScreen.fullScreen; + }, + /** * @function * @param {Boolean} visible