Skip to content

fix: Database isn't escaped when dumped in the published HTML file - #1134

Merged
tiensonqin merged 1 commit into
masterfrom
fix/escape-publishing
Jan 18, 2021
Merged

tiensonqin merged 1 commit into
masterfrom
fix/escape-publishing

Conversation

@tiensonqin

Copy link
Copy Markdown
Contributor

Related to #1100

@karlicoss

karlicoss commented Jan 15, 2021 •

Copy link
Copy Markdown
Contributor

Hmm, very odd...
My current graph seems to get stuck when loading (and then chrome timeouts and gives error).. although I am struggling to see where exactly it's stuck, what's the easiest way to disable all minifying? Also it's really weird, can't possibly imagine what in this diff can make it behave like that 🤔
I tried a new empty graph, and it seems to load fine, but then clicking on 'Graph' or 'All pages' fails with the error

main.js:207 Error: No protocol method IDB.-attrs-by defined for type string: ["~#'",null]

(attached index.html with txt extension, otherwise github won't let me attach)

index.html.txt

@karlicoss

Copy link
Copy Markdown
Contributor

Apologies, disregard the Error: No protocol method IDB.-attrs-by defined for type string: ["~#'",null] error, it was my fault, slipped some debugging code by accident, works fine with an empty graph!
Will try to debug the hanging during loading my larger graph..

@karlicoss

karlicoss commented Jan 15, 2021 •

Copy link
Copy Markdown
Contributor

Right, it works, no idea what was the problem I had before 🤦 Sorry for the fuss and thanks for fixing!

P.S. one more thing -- when using local directory, publishing menu entry isn't available, because logged? is false, so I had to comment it out:

-         (when (and logged? current-repo)
+         (when current-repo

Not sure what the right way to fix it would be.. something to do with nfs/supported??

@tiensonqin

Copy link
Copy Markdown
Contributor Author

@karlicoss Thank you for the confirmation!
No need to add nfs/supported? check because the coming desktop app doesn't need to be logged in.
The logged? check is removed now. Will close this issue.

@tiensonqin tiensonqin closed this Jan 18, 2021
@karlicoss

Copy link
Copy Markdown
Contributor

Didn't you mean to merge this? :) Or is it Github triggering by word 'close'?

@tiensonqin

Copy link
Copy Markdown
Contributor Author

@karlicoss my bad, sorry I mean to merge this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants