mirror of
https://github.com/HeyPuter/puter.git
synced 2025-02-02 23:28:39 +08:00
chore: Mark globals as being part of the window object
Silences eslint
This commit is contained in:
parent
00765d0fce
commit
d81f6e5ede
@ -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';
|
||||
|
@ -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
|
||||
|
@ -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 = []
|
||||
|
Loading…
Reference in New Issue
Block a user