This repository has been archived by the owner on Mar 6, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use /ws.obsidian.md to make Obsidian devs happier?
- Loading branch information
Showing
2 changed files
with
2 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
d2159c2
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think they wouldn't want us to do that due to trademark reasons.
d2159c2
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah I see, this is to bypass a check
d2159c2
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@acheong08 maybe we should use
[String.fromCharCode(97, 112, 105), "obsidian", "md"].join(".")
instead lold2159c2
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it is dont work on ios,i cant login
d2159c2
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@tzyGeneral indeed. This now leverages Electron APIs which are only available on Desktop. I don't have access to any iOS device to figure out similar workarounds there. Contributions welcome.
d2159c2
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I do happen to have an IOS device. How would I go about debugging on there?
d2159c2
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I downloaded the IPA and the code looks essentially identical:
d2159c2
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here is the error I got on IOS:
d2159c2
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Example code referencing electronWindow
electronWindow seems to be at
this.win
. Whateverthis
is.d2159c2
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I really don't understand JavaScript. No idea where
this.win
is getting defined.app.js.zip
I found
d2159c2
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@acheong08 the Electron API won't be available outside of desktop: https://docs.obsidian.md/Plugins/Getting+started/Mobile+development#Disable+your+plugin+on+mobile+devices - would need to investigate if the Mobile JS environment being used has any similar hooks.
d2159c2
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks. I think service workers might work there instead. I was getting
On desktop but that seems to be Linux specific
d2159c2
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm it also failed on IOS but I was unable to get any specific error message.
This simply returned "Failed to load plugin", meaning that whatever error it triggered isn't getting caught by try catch
Not gonna put too much effort into this since I barely use my phone