chore: Mark globals as being part of the window object

Silences eslint
This commit is contained in:
Sam Atkins 2024-06-24 11:46:01 +01:00 committed by Eric Dubé
parent 00765d0fce
commit d81f6e5ede
3 changed files with 6 additions and 6 deletions

View File

@ -108,7 +108,7 @@ export default {
puter.kv.set('menubar_style', value);
if(value === 'system'){
if(detectHostOS() === 'macos')
if(window.detectHostOS() === 'macos')
value = 'desktop';
else
value = 'window';

View File

@ -571,11 +571,11 @@ async function UIDesktop(options){
window.menubar_style = 'system';
}
if(menubar_style === 'system'){
if(window.menubar_style === 'system'){
if(window.detectHostOS() === 'macos')
menubar_style = 'desktop';
window.menubar_style = 'desktop';
else
menubar_style = 'window';
window.menubar_style = 'window';
}
// set menubar style class to body

View File

@ -1392,7 +1392,7 @@ async function UIWindow(options) {
// if this is the home directory of another user, show the sharing dialog
// --------------------------------------------------------
let cur_path = $(el_window).attr('data-path');
if(countSubstr(cur_path, '/') === 1 && cur_path !== '/'+window.user.username){
if(window.countSubstr(cur_path, '/') === 1 && cur_path !== '/'+window.user.username){
let username = cur_path.split('/')[1];
const items_to_share = []