the order lives in leftRibbon.items, log just the ids
This commit is contained in:
1 parent
3cf849be62
commit
aa62f35cbd
1 file changed
+2
-1
@@ -3,7 +3,8 @@ const { Plugin } = require('obsidian');
|
||||
module.exports = class RibbonOrderLock extends Plugin {
|
||||
async onload() {
|
||||
this.app.workspace.onLayoutReady(() => {
|
||||
console.log(this.app.workspace.leftRibbon);
|
||||
const ribbon = this.app.workspace.leftRibbon;
|
||||
console.log(ribbon.items.map((item) => item.id));
|
||||
});
|
||||
}
|
||||
};
|
||||
Reference in new issue
Block a user