diff options
author | Frederic Guillot <fred@kanboard.net> | 2017-03-11 17:45:13 -0500 |
---|---|---|
committer | Frederic Guillot <fred@kanboard.net> | 2017-03-11 17:45:13 -0500 |
commit | a7db17b0b2d1a2ee720c9b923d0db1fc051c5c97 (patch) | |
tree | b2d58778d7c9ebec168c02bd7575f738b074e4f5 /assets/js/src/App.js | |
parent | 8372cdfa8ff7ba4400dad585cba67b54045b7c2d (diff) |
Move isVisible() method
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; -}; |