First of all, this a very low priority topic. I'm just curious if it is currently possible. Because I could not get it working. I've tested two options but both don't work.
- add as script with 'profileDir' as full path:
const profileDir: string = await joplin.settings.globalValue('profileDir'); await joplin.views.panels.addScript(panel, profileDir + '/userchrome.css');
=> Does not work because
addScript adds the current workingDir to the path. So only relative paths can be used here.
- So I've tried a relative path (doesn't matter if it would be right):
await joplin.views.panels.addScript(panel, '../userchrome.css');
=> Causes the following error on app start.
joplin.plugins: Uncaught exception in plugin "joplin.plugin.note.tabs": Error: Script appears to be outside of plugin base directory: ...
So my question is... is there another way this could work? Or is it unsupported on purpose?