minor tweaks

This commit is contained in:
or-else
2023-03-14 09:44:54 -07:00
parent 323042bd96
commit 43798ea1d9
7 changed files with 19 additions and 10 deletions
+1
View File
@@ -2312,6 +2312,7 @@ ul.tabbar li.active > a {
width: 100%; width: 100%;
padding-bottom: 100%; padding-bottom: 100%;
border-radius: 50%; border-radius: 50%;
user-select: none;
} }
/* Div with letter tile content */ /* Div with letter tile content */
+1 -1
View File
File diff suppressed because one or more lines are too long
+6 -2
View File
@@ -277,8 +277,10 @@ class TinodeWeb extends React.Component {
componentDidMount() { componentDidMount() {
window.addEventListener('resize', this.handleResize); window.addEventListener('resize', this.handleResize);
window.addEventListener('online', (e) => { this.handleOnline(true); }); this.handleOnlineOn = _ => { this.handleOnline(true); }
window.addEventListener('offline', (e) => { this.handleOnline(false); }); window.addEventListener('online', this.handleOnlineOn);
this.handleOnlineOff = _ => { this.handleOnline(false); }
window.addEventListener('offline', this.handleOnlineOff);
window.addEventListener('hashchange', this.handleHashRoute); window.addEventListener('hashchange', this.handleHashRoute);
// Process background notifications from the service worker. // Process background notifications from the service worker.
@@ -354,6 +356,8 @@ class TinodeWeb extends React.Component {
componentWillUnmount() { componentWillUnmount() {
window.removeEventListener('resize', this.handleResize); window.removeEventListener('resize', this.handleResize);
window.removeEventListener('hashchange', this.handleHashRoute); window.removeEventListener('hashchange', this.handleHashRoute);
window.removeEventListener('online', this.handleOnlineOn);
window.removeEventListener('offline', this.handleOnlineOff);
document.removeEventListener('visibilitychange', this.handleVisibilityEvent); document.removeEventListener('visibilitychange', this.handleVisibilityEvent);
} }
+8 -4
View File
@@ -7452,12 +7452,14 @@ class TinodeWeb extends (react__WEBPACK_IMPORTED_MODULE_0___default().Component)
} }
componentDidMount() { componentDidMount() {
window.addEventListener('resize', this.handleResize); window.addEventListener('resize', this.handleResize);
window.addEventListener('online', e => { this.handleOnlineOn = _ => {
this.handleOnline(true); this.handleOnline(true);
}); };
window.addEventListener('offline', e => { window.addEventListener('online', this.handleOnlineOn);
this.handleOnlineOff = _ => {
this.handleOnline(false); this.handleOnline(false);
}); };
window.addEventListener('offline', this.handleOnlineOff);
window.addEventListener('hashchange', this.handleHashRoute); window.addEventListener('hashchange', this.handleHashRoute);
if (typeof BroadcastChannel == 'function') { if (typeof BroadcastChannel == 'function') {
const serviceWorkerChannel = new BroadcastChannel('tinode-sw'); const serviceWorkerChannel = new BroadcastChannel('tinode-sw');
@@ -7510,6 +7512,8 @@ class TinodeWeb extends (react__WEBPACK_IMPORTED_MODULE_0___default().Component)
componentWillUnmount() { componentWillUnmount() {
window.removeEventListener('resize', this.handleResize); window.removeEventListener('resize', this.handleResize);
window.removeEventListener('hashchange', this.handleHashRoute); window.removeEventListener('hashchange', this.handleHashRoute);
window.removeEventListener('online', this.handleOnlineOn);
window.removeEventListener('offline', this.handleOnlineOff);
document.removeEventListener('visibilitychange', this.handleVisibilityEvent); document.removeEventListener('visibilitychange', this.handleVisibilityEvent);
} }
static tnSetup(serverAddress, secureConnection, transport, locale, persistentCache, onSetupCompleted) { static tnSetup(serverAddress, secureConnection, transport, locale, persistentCache, onSetupCompleted) {
+1 -1
View File
File diff suppressed because one or more lines are too long
+1 -1
View File
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long