Scripts not loading from Folder
Eforen opened this issue · 2 comments
Eforen commented
named folder .customjs
set it in the settings
put a file in it .customjs/test.js
class test {
test() {
console.log("test")
return "Test";
}
}
Open dev console ran await forceLoadCustomJS()
then tried test.test()
and window.test.test()
None of this worked
julesvirallinen commented
see the docs for how to load customJS functions
In dataviewjs codeblock or other obsidian js-environment:
const {test} = customJS
test.test()
saml-dev commented
Thanks @julesvirallinen .
@Eforen please try using CustomJS as noted above and reopen if it still doesn't work.