diff options
Diffstat (limited to 'assets/js/src/App.js')
-rw-r--r-- | assets/js/src/App.js | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/assets/js/src/App.js b/assets/js/src/App.js index 9aa97061..12889c58 100644 --- a/assets/js/src/App.js +++ b/assets/js/src/App.js @@ -112,23 +112,3 @@ Kanboard.App.prototype.showLoadingIcon = function() { Kanboard.App.prototype.hideLoadingIcon = function() { $("#app-loading-icon").remove(); }; - -Kanboard.App.prototype.isVisible = function() { - var property = ""; - - if (typeof document.hidden !== "undefined") { - property = "visibilityState"; - } else if (typeof document.mozHidden !== "undefined") { - property = "mozVisibilityState"; - } else if (typeof document.msHidden !== "undefined") { - property = "msVisibilityState"; - } else if (typeof document.webkitHidden !== "undefined") { - property = "webkitVisibilityState"; - } - - if (property !== "") { - return document[property] == "visible"; - } - - return true; -}; |