-
Notifications
You must be signed in to change notification settings - Fork 57
1.4.11 patched the plugin again #28
Comments
That's annoying... Will debug |
Where is this main.js? |
in the obsidian.asar file located at /usr/lib/obsidian/obsidian.asar on linux |
Weird that I only see app.js but not main.js. |
this is the contents of the extracted asar for me
|
Ah. I was looking from electron's sources menu. Weird that it isn't included there. |
Considering this is already broken on mobile and there are no impediments to editing obsidian.asar directly on Desktop, I think that is a much easier solution than spending hours to patch it while limited to a plugin. It should be possible to make a GitHub workflow to automatically patch and release "vulnerable" versions of ObsidianMD |
Looks like they also intentionally added some code to detect when the websocket URL is wrong |
if (!HJ.call(u, ".obsidian.md") && "127.0.0.1" !== u)
return s(new Error("Unable to connect to server.")); "Unable to connect to server". What a misleading error message... |
I think we need a separate tool to capture system request and return custom response 😆 |
@ShiinaRinne I'm currently working on https://github.com/acheong08/obi-sync-lib which should fix the issue. It'll take a few weeks but once that is done, Obsidian should no longer be able to patch the plugin without causing significant issues with other legit plugins |
line 1056 of main.js when ran through js-beautify
r being a function which returns !1
The text was updated successfully, but these errors were encountered: