obsidian-workspaces-plus
obsidian-workspaces-plus copied to clipboard
Open Workspaces Plus: Insider Builds 0.16.5 and 1.0.0
Describe the bug Started in 0.16.5: "Open Workspaces Plus" gets a JS eror
To Reproduce Steps to reproduce the behavior:
- Go to install the 0.16.5 version of insider builds
- Click on Any method to "Open Workspaces Plus" option-esc, command pallet
- See nothing, unless you have Developer Tools open
Uncaught DOMException: Failed to execute 'replaceChild' on 'Node': The node to be replaced is not a child of this node.
at new WorkspacesPlusPluginModal (plugin:workspaces-plus:2106:22)
at WorkspacesPlus.onStatusBarClick (plugin:workspaces-plus:2445:9)
at HTMLDivElement.eval (plugin:workspaces-plus:2433:61)
WorkspacesPlusPluginModal @ plugin:workspaces-plus:2106
onStatusBarClick @ plugin:workspaces-plus:2445
eval @ plugin:workspaces-plus:2433
Expected behavior Opening the swicher
Screenshots N/A
Desktop (please complete the following information):
- OS: macOS Monterey
- Browser Obsidian 0.16.5
- Version 12.6.1
Smartphone (please complete the following information):
- Device: [e.g. iPhone6]
- OS: [e.g. iOS8.1]
- Browser [e.g. stock browser, safari]
- Version [e.g. 22]
Additional context
Same on 1.0
Also reported as #87
I found an easy fix, while we wait for @nothingislost to handle this properly:
- Navigate to
<vault>/.obsidian/plugins/workspaces-plus/
and openmain.js
- find the following lines:
// clone the input element as a hacky way to get rid of the obsidian onInput handler
const inputElClone = this.inputEl.cloneNode();
this.modalEl.replaceChild(inputElClone, this.inputEl);
this.inputEl = inputElClone;
- comment them out.
- If using the beta version, the offensive lines appear twice! Comment them out twice!
I could not notice any issues with onInput
handler - on the other hand, my Workspaces-Plus modal now shows up again 🎉
EDIT: to comment them out, add //
in front of the line:
// clone the input element as a hacky way to get rid of the obsidian onInput handler
//const inputElClone = this.inputEl.cloneNode();
//this.modalEl.replaceChild(inputElClone, this.inputEl);
//this.inputEl = inputElClone;
Thank you! Thank you!
It works perfectly!! thank you so much!
Thank you very much!!
Thanks for posting your solution.
I found an easy fix, while we wait for @nothingislost to handle this properly:
- Navigate to
<vault>/.obsidian/plugins/workspaces-plus/
and openmain.js
- find the following lines:
- comment them out.
It's work. Very thankful.
@etiennepellegrini Thank you so much. It works.
Thanks , it works
Thanks for posting your solution.
@aropele thank you again for posting the fix. everyone, please see #93
hopefully the plugin is working again for you all 🤞