diff --git a/eslint.config.js b/eslint.config.js index 4bae3fb2..66409945 100644 --- a/eslint.config.js +++ b/eslint.config.js @@ -58,6 +58,10 @@ export default [ "html_encode": true, "html_decode": true, "isMobile": true, + // Class Registry + "logger": true, + "def": true, + "use": true, // Libraries "saveAs": true, // FileSaver "iro": true, // iro.js color picker diff --git a/packages/backend/src/services/PuterHomepageService.js b/packages/backend/src/services/PuterHomepageService.js index 8f8f1fbd..a32c017f 100644 --- a/packages/backend/src/services/PuterHomepageService.js +++ b/packages/backend/src/services/PuterHomepageService.js @@ -114,6 +114,12 @@ class PuterHomepageService extends BaseService { const bundled = env != 'dev' || use_bundled_gui; + const writeScriptTag = path => + `\n` + ; + return ` @@ -161,6 +167,28 @@ class PuterHomepageService extends BaseService { + + ${ ((!bundled && manifest?.css_paths) @@ -209,13 +237,16 @@ class PuterHomepageService extends BaseService { ${ ((!bundled && manifest?.js_paths) - ? manifest.js_paths.map(path => `\n`) + ? manifest.js_paths.map(path => writeScriptTag(path)) : []).join('') } - + -