Logo
Explore Help
Register Sign In
keejef
/
session-desktop
mirror of https://github.com/oxen-io/session-desktop
2
0
Fork
You've already forked session-desktop
0
Code Issues 8 Projects Releases Wiki Activity
session-desktop/js/focus_listener.js

15 lines
298 B
JavaScript
Raw Normal View History Unescape Escape

Remove jshint - move everything over to eslint Also removed all hints of previous linters
7 years ago
// eslint-disable-next-line func-names
Format all source code using Prettier
7 years ago
(function() {
Move focus listeners to their own file // FREEBIE
8 years ago
'use strict';
Remove jshint - move everything over to eslint Also removed all hints of previous linters
7 years ago
let windowFocused = false;
window.addEventListener('blur', () => {
Move focus listeners to their own file // FREEBIE
8 years ago
windowFocused = false;
});
Remove jshint - move everything over to eslint Also removed all hints of previous linters
7 years ago
window.addEventListener('focus', () => {
Move focus listeners to their own file // FREEBIE
8 years ago
windowFocused = true;
});
Remove jshint - move everything over to eslint Also removed all hints of previous linters
7 years ago
window.isFocused = () => windowFocused;
Move focus listeners to their own file // FREEBIE
8 years ago
})();
Powered by Gitea Version: 1.19.1 Page: 884ms Template: 31ms
English
Bahasa Indonesia Deutsch English Español Français Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API