TriliumNext Home Assistant Addon - almost done, need some support :) #1249
-
Hey guys, I am currently working on a TriliumNext HA Addon. Console shows this: Two main Threads, one working and this is the other one: (no-domain) (function t(){"undefined"==typeof globalThis&&(window.globalThis=window);const e=globalThis.document,t=globalThis.CustomEvent,n=globalThis.FileReader,r=globalThis.Blob,a={family:"font-family",style:"font-style",weight:"font-weight",stretch:"font-stretch",unicodeRange:"unicode-range",variant:"font-variant",featureSettings:"font-feature-settings"};if(globalThis.FontFace){const n=globalThis.FontFace;globalThis.FontFace=function(){return o(...arguments).then((n=>e.dispatchEvent(new t("single-file-new-font-face",{detail:n})))),new n(...arguments)},globalThis.FontFace.prototype=n.prototype,globalThis.FontFace.toString=function(){return"function FontFace() { [native code] }"};const r=e.fonts.delete;e.fonts.delete=function(n){return o(n.family).then((n=>e.dispatchEvent(new t("single-file-delete-font",{detail:n})))),r.call(e.fonts,n)},e.fonts.delete.toString=function(){return"function delete() { [native code] }"};const a=e.fonts.clear;e.fonts.clear=function(){return e.dispatchEvent(new t("single-file-clear-fonts")),a.call(e.fonts)},e.fonts.clear.toString=function(){return"function clear() { [native code] }"}}async function o(e,t,o){const s={};return s["font-family"]=e,s.src=t,o&&Object.keys(o).forEach((e=>{a[e]&&(s[a[e]]=o[e])})),new Promise((e=>{if(s.src instanceof ArrayBuffer){const t=new n;t.readAsDataURL(new r([s.src])),t.addEventListener("load",(()=>{s.src="url("+t.result+")",e(s)}))}else e(s)}))}})() Anybody got an idea whats wrong here? Thanks |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 1 reply
-
can you provide a link to your code's addon maybe? to me this looks like it doesn't properly load the JS file for the setup page. |
Beta Was this translation helpful? Give feedback.
-
This is the run.sh, is this what u need? Ensure data directory exists with proper permissionsmkdir -p /home/node/trilium-data echo "Starting Trilium Next..." Use the known app pathAPP_DIR="/usr/src/app" Set more comprehensive CORS settingsexport TRILIUM_CORS_ALLOWED_ORIGINS="*" Enable verbose logging for debuggingexport TRILIUM_LOG_LEVEL="debug" Important for Home Assistant Ingressexport TRILIUM_BASE_URL="/api/hassio_ingress/${HOSTNAME}" Check for Trilium data directoryif [ ! -f "/home/node/trilium-data/config.ini" ]; then Create initial structure if needed, using simple sh syntax: # No-op for placeholder echo "Umgebungsvariablen:" Change to app directory and start with proper host bindingcd "$APP_DIR" |
Beta Was this translation helpful? Give feedback.
-
@HyperCriSiS , the issue is that you are running |
Beta Was this translation helpful? Give feedback.
-
quick other remark:
Are these settings required by your HomeAssistant Addon? |
Beta Was this translation helpful? Give feedback.
@HyperCriSiS , the issue is that you are running
src/www
, you should be runningsrc/main
which initializes the translations.