Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Drawing pad not showing in both latest (tone-colored strokes) versions #23

Closed
camerooncameroon opened this issue Oct 3, 2022 · 7 comments · Fixed by #24
Closed

Drawing pad not showing in both latest (tone-colored strokes) versions #23

camerooncameroon opened this issue Oct 3, 2022 · 7 comments · Fixed by #24

Comments

@camerooncameroon
Copy link

Great update, thanks for your outstanding work!
Tone colored strokes are unbelievably useful.
The screenshots are really cool!

Although, I downloaded latest version and previous, both seem not to display drawing pad at all.

Old versions (not-colored strokes) are working fine.

@krmanik
Copy link
Owner

krmanik commented Oct 3, 2022

Although, I downloaded latest version and previous, both seem not to display drawing pad at all.

Can you share the screenshots?

@camerooncameroon
Copy link
Author

image

@krmanik
Copy link
Owner

krmanik commented Oct 3, 2022

Install this addon to inspect the webview. After install/restart Anki, right click and inspect the above current notes and paste screenshot here. I have checked it again but no issues. The inspect webview may tell something about the issues.

AnkiWebView Inspector
https://ankiweb.net/shared/info/31746032

Similar to this image.
image

@camerooncameroon
Copy link
Author

camerooncameroon commented Oct 3, 2022

I'll do as you instruct and put the resulting screenshot promptly.
Also, I guess it's worth mentioning that the same situation occurs also on AnkiDroid (as well as on Anki Desktop windows version)

Upd: here's the screenshot:
image
All the text didn't fit, so I copied that, too:
MathJax localStorage error: Failed to read the 'localStorage' property from 'Window': Storage is disabled inside 'data:' URLs. reviewer.js:7 Uncaught DOMException: Failed to read the 'localStorage' property from 'Window': Storage is disabled inside 'data:' URLs. at <anonymous>:2:1 at za (http://127.0.0.1:64795/_anki/js/reviewer.js:7:94216) at http://127.0.0.1:64795/_anki/js/reviewer.js:8:204 at Generator.next (<anonymous>) at http://127.0.0.1:64795/_anki/js/reviewer.js:1:2920 at new Promise (<anonymous>) at Ls (http://127.0.0.1:64795/_anki/js/reviewer.js:1:2717) at Fi (http://127.0.0.1:64795/_anki/js/reviewer.js:8:64) at http://127.0.0.1:64795/_anki/js/reviewer.js:8:429 (anonymous) za @ reviewer.js:7 (anonymous) @ reviewer.js:8 (anonymous) @ reviewer.js:1 Ls @ reviewer.js:1 Fi @ reviewer.js:8 (anonymous) @ reviewer.js:8 _GBZenKai-Medium.woff2:1 Failed to load resource: the server responded with a status of 404 (NOT FOUND) _GBZenKai-Medium.woff:1 Failed to load resource: the server responded with a status of 404 (NOT FOUND) _ZenKai-Medium.woff2:1 Failed to load resource: the server responded with a status of 404 (NOT FOUND) _ZenKai-Medium.woff:1 Failed to load resource: the server responded with a status of 404 (NOT FOUND) 5reviewer.js:7 Uncaught DOMException: Failed to read the 'localStorage' property from 'Window': Storage is disabled inside 'data:' URLs. at initSwitchPrefs (<anonymous>:6:13) at <anonymous>:11:5 at za (http://127.0.0.1:64795/_anki/js/reviewer.js:7:94216) at http://127.0.0.1:64795/_anki/js/reviewer.js:8:204 at Generator.next (<anonymous>) at http://127.0.0.1:64795/_anki/js/reviewer.js:1:2920 at new Promise (<anonymous>) at Ls (http://127.0.0.1:64795/_anki/js/reviewer.js:1:2717) at Fi (http://127.0.0.1:64795/_anki/js/reviewer.js:8:64) at http://127.0.0.1:64795/_anki/js/reviewer.js:8:429 initSwitchPrefs (anonymous) za @ reviewer.js:7 (anonymous) @ reviewer.js:8 (anonymous) @ reviewer.js:1 Ls @ reviewer.js:1 Fi @ reviewer.js:8 (anonymous) @ reviewer.js:8 reviewer.js:7 Uncaught DOMException: Failed to read the 'localStorage' property from 'Window': Storage is disabled inside 'data:' URLs. at <anonymous>:2:1 at za (http://127.0.0.1:64795/_anki/js/reviewer.js:7:94216) at http://127.0.0.1:64795/_anki/js/reviewer.js:8:204 at Generator.next (<anonymous>) at http://127.0.0.1:64795/_anki/js/reviewer.js:1:2920 at new Promise (<anonymous>) at Ls (http://127.0.0.1:64795/_anki/js/reviewer.js:1:2717) at Fi (http://127.0.0.1:64795/_anki/js/reviewer.js:8:64) at http://127.0.0.1:64795/_anki/js/reviewer.js:8:429 (anonymous) za @ reviewer.js:7 (anonymous) @ reviewer.js:8 (anonymous) @ reviewer.js:1 Ls @ reviewer.js:1 Fi @ reviewer.js:8 (anonymous) @ reviewer.js:8 reviewer.js:7 Uncaught DOMException: Failed to read the 'localStorage' property from 'Window': Storage is disabled inside 'data:' URLs. at initSwitchPrefs (<anonymous>:6:13) at <anonymous>:11:5 at za (http://127.0.0.1:64795/_anki/js/reviewer.js:7:94216) at http://127.0.0.1:64795/_anki/js/reviewer.js:8:204 at Generator.next (<anonymous>) at http://127.0.0.1:64795/_anki/js/reviewer.js:1:2920 at new Promise (<anonymous>) at Ls (http://127.0.0.1:64795/_anki/js/reviewer.js:1:2717) at Fi (http://127.0.0.1:64795/_anki/js/reviewer.js:8:64) at http://127.0.0.1:64795/_anki/js/reviewer.js:8:429 initSwitchPrefs (anonymous) za @ reviewer.js:7 (anonymous) @ reviewer.js:8 (anonymous) @ reviewer.js:1 Ls @ reviewer.js:1 Fi @ reviewer.js:8 (anonymous) @ reviewer.js:8 reviewer.js:7 Uncaught DOMException: Failed to read the 'localStorage' property from 'Window': Storage is disabled inside 'data:' URLs. at initSwitchPrefs (<anonymous>:7:13) at <anonymous>:12:5 at za (http://127.0.0.1:64795/_anki/js/reviewer.js:7:94216) at http://127.0.0.1:64795/_anki/js/reviewer.js:8:204 at Generator.next (<anonymous>) at http://127.0.0.1:64795/_anki/js/reviewer.js:1:2920 at new Promise (<anonymous>) at Ls (http://127.0.0.1:64795/_anki/js/reviewer.js:1:2717) at Fi (http://127.0.0.1:64795/_anki/js/reviewer.js:8:64) at http://127.0.0.1:64795/_anki/js/reviewer.js:8:429 initSwitchPrefs (anonymous) za @ reviewer.js:7 (anonymous) @ reviewer.js:8 (anonymous) @ reviewer.js:1 Ls @ reviewer.js:1 Fi @ reviewer.js:8 (anonymous) @ reviewer.js:8 reviewer.js:7 Uncaught DOMException: Failed to read the 'localStorage' property from 'Window': Storage is disabled inside 'data:' URLs. at initSwitchPrefs (<anonymous>:6:13) at <anonymous>:11:5 at za (http://127.0.0.1:64795/_anki/js/reviewer.js:7:94216) at http://127.0.0.1:64795/_anki/js/reviewer.js:8:204 at Generator.next (<anonymous>) at http://127.0.0.1:64795/_anki/js/reviewer.js:1:2920 at new Promise (<anonymous>) at Ls (http://127.0.0.1:64795/_anki/js/reviewer.js:1:2717) at Fi (http://127.0.0.1:64795/_anki/js/reviewer.js:8:64) at http://127.0.0.1:64795/_anki/js/reviewer.js:8:429 initSwitchPrefs (anonymous) za @ reviewer.js:7 (anonymous) @ reviewer.js:8 (anonymous) @ reviewer.js:1 Ls @ reviewer.js:1 Fi @ reviewer.js:8 (anonymous) @ reviewer.js:8 2reviewer.js:7 Uncaught DOMException: Failed to read the 'localStorage' property from 'Window': Storage is disabled inside 'data:' URLs. at initSwitchPrefs (<anonymous>:7:13) at <anonymous>:12:5 at za (http://127.0.0.1:64795/_anki/js/reviewer.js:7:94216) at http://127.0.0.1:64795/_anki/js/reviewer.js:8:204 at Generator.next (<anonymous>) at http://127.0.0.1:64795/_anki/js/reviewer.js:1:2920 at new Promise (<anonymous>) at Ls (http://127.0.0.1:64795/_anki/js/reviewer.js:1:2717) at Fi (http://127.0.0.1:64795/_anki/js/reviewer.js:8:64) at http://127.0.0.1:64795/_anki/js/reviewer.js:8:429 initSwitchPrefs (anonymous) za @ reviewer.js:7 (anonymous) @ reviewer.js:8 (anonymous) @ reviewer.js:1 Ls @ reviewer.js:1 Fi @ reviewer.js:8 (anonymous) @ reviewer.js:8 VM352:6 Uncaught DOMException: Failed to read the 'localStorage' property from 'Window': Storage is disabled inside 'data:' URLs. at initSwitchPrefs (<anonymous>:6:13) at <anonymous>:11:5 at za (http://127.0.0.1:64795/_anki/js/reviewer.js:7:94216) at http://127.0.0.1:64795/_anki/js/reviewer.js:8:204 at Generator.next (<anonymous>) at http://127.0.0.1:64795/_anki/js/reviewer.js:1:2920 at new Promise (<anonymous>) at Ls (http://127.0.0.1:64795/_anki/js/reviewer.js:1:2717) at Fi (http://127.0.0.1:64795/_anki/js/reviewer.js:8:64) at http://127.0.0.1:64795/_anki/js/reviewer.js:8:429 initSwitchPrefs @ VM352:6 (anonymous) @ VM352:11 za @ reviewer.js:7 (anonymous) @ reviewer.js:8 (anonymous) @ reviewer.js:1 Ls @ reviewer.js:1 Fi @ reviewer.js:8 (anonymous) @ reviewer.js:8 2reviewer.js:7 Uncaught DOMException: Failed to read the 'localStorage' property from 'Window': Storage is disabled inside 'data:' URLs. at <anonymous>:2:1 at za (http://127.0.0.1:64795/_anki/js/reviewer.js:7:94216) at http://127.0.0.1:64795/_anki/js/reviewer.js:8:204 at Generator.next (<anonymous>) at http://127.0.0.1:64795/_anki/js/reviewer.js:1:2920 at new Promise (<anonymous>) at Ls (http://127.0.0.1:64795/_anki/js/reviewer.js:1:2717) at Fi (http://127.0.0.1:64795/_anki/js/reviewer.js:8:64) at http://127.0.0.1:64795/_anki/js/reviewer.js:8:429 (anonymous) za @ reviewer.js:7 (anonymous) @ reviewer.js:8 (anonymous) @ reviewer.js:1 Ls @ reviewer.js:1 Fi @ reviewer.js:8 (anonymous) @ reviewer.js:8 VM373:7 Uncaught DOMException: Failed to read the 'localStorage' property from 'Window': Storage is disabled inside 'data:' URLs. at initSwitchPrefs (<anonymous>:7:13) at <anonymous>:12:5 at za (http://127.0.0.1:64795/_anki/js/reviewer.js:7:94216) at http://127.0.0.1:64795/_anki/js/reviewer.js:8:204 at Generator.next (<anonymous>) at http://127.0.0.1:64795/_anki/js/reviewer.js:1:2920 at new Promise (<anonymous>) at Ls (http://127.0.0.1:64795/_anki/js/reviewer.js:1:2717) at Fi (http://127.0.0.1:64795/_anki/js/reviewer.js:8:64) at http://127.0.0.1:64795/_anki/js/reviewer.js:8:429 initSwitchPrefs @ VM373:7 (anonymous) @ VM373:12 za @ reviewer.js:7 (anonymous) @ reviewer.js:8 (anonymous) @ reviewer.js:1 Ls @ reviewer.js:1 Fi @ reviewer.js:8 (anonymous) @ reviewer.js:8 VM381:7 Uncaught DOMException: Failed to read the 'localStorage' property from 'Window': Storage is disabled inside 'data:' URLs. at initPractice (<anonymous>:7:35) at <anonymous>:135:9 at za (http://127.0.0.1:64795/_anki/js/reviewer.js:7:94216) at http://127.0.0.1:64795/_anki/js/reviewer.js:8:204 at Generator.next (<anonymous>) at http://127.0.0.1:64795/_anki/js/reviewer.js:1:2920 at new Promise (<anonymous>) at Ls (http://127.0.0.1:64795/_anki/js/reviewer.js:1:2717) at Fi (http://127.0.0.1:64795/_anki/js/reviewer.js:8:64) at http://127.0.0.1:64795/_anki/js/reviewer.js:8:429 initPractice @ VM381:7 (anonymous) @ VM381:135 za @ reviewer.js:7 (anonymous) @ reviewer.js:8 (anonymous) @ reviewer.js:1 Ls @ reviewer.js:1 Fi @ reviewer.js:8 (anonymous) @ reviewer.js:8 reviewer.js:7 Uncaught (in promise) DOMException: Failed to read the 'localStorage' property from 'Window': Storage is disabled inside 'data:' URLs. at doPractice (<anonymous>:43:13) at <anonymous>:68:5 at za (http://127.0.0.1:64795/_anki/js/reviewer.js:7:94216) at http://127.0.0.1:64795/_anki/js/reviewer.js:8:204 at Generator.next (<anonymous>) at http://127.0.0.1:64795/_anki/js/reviewer.js:1:2920 at new Promise (<anonymous>) at Ls (http://127.0.0.1:64795/_anki/js/reviewer.js:1:2717) at Fi (http://127.0.0.1:64795/_anki/js/reviewer.js:8:64) at http://127.0.0.1:64795/_anki/js/reviewer.js:8:429 doPractice (anonymous) za @ reviewer.js:7 (anonymous) @ reviewer.js:8 (anonymous) @ reviewer.js:1 Ls @ reviewer.js:1 Fi @ reviewer.js:8 (anonymous) @ reviewer.js:8 VM391:7 Uncaught DOMException: Failed to read the 'localStorage' property from 'Window': Storage is disabled inside 'data:' URLs. at initPractice (<anonymous>:7:35) at <anonymous>:135:9 at za (http://127.0.0.1:64795/_anki/js/reviewer.js:7:94216) at http://127.0.0.1:64795/_anki/js/reviewer.js:8:204 at Generator.next (<anonymous>) at http://127.0.0.1:64795/_anki/js/reviewer.js:1:2920 at new Promise (<anonymous>) at Ls (http://127.0.0.1:64795/_anki/js/reviewer.js:1:2717) at Fi (http://127.0.0.1:64795/_anki/js/reviewer.js:8:64) at http://127.0.0.1:64795/_anki/js/reviewer.js:8:429 initPractice @ VM391:7 (anonymous) @ VM391:135 za @ reviewer.js:7 (anonymous) @ reviewer.js:8 (anonymous) @ reviewer.js:1 Ls @ reviewer.js:1 Fi @ reviewer.js:8 (anonymous) @ reviewer.js:8 reviewer.js:7 Uncaught (in promise) DOMException: Failed to read the 'localStorage' property from 'Window': Storage is disabled inside 'data:' URLs. at doPractice (<anonymous>:43:13) at <anonymous>:68:5 at za (http://127.0.0.1:64795/_anki/js/reviewer.js:7:94216) at http://127.0.0.1:64795/_anki/js/reviewer.js:8:204 at Generator.next (<anonymous>) at http://127.0.0.1:64795/_anki/js/reviewer.js:1:2920 at new Promise (<anonymous>) at Ls (http://127.0.0.1:64795/_anki/js/reviewer.js:1:2717) at Fi (http://127.0.0.1:64795/_anki/js/reviewer.js:8:64) at http://127.0.0.1:64795/_anki/js/reviewer.js:8:429 doPractice (anonymous) za @ reviewer.js:7 (anonymous) @ reviewer.js:8 (anonymous) @ reviewer.js:1 Ls @ reviewer.js:1 Fi @ reviewer.js:8 (anonymous) @ reviewer.js:8 VM401:7 Uncaught DOMException: Failed to read the 'localStorage' property from 'Window': Storage is disabled inside 'data:' URLs. at initPractice (<anonymous>:7:35) at <anonymous>:135:9 at za (http://127.0.0.1:64795/_anki/js/reviewer.js:7:94216) at http://127.0.0.1:64795/_anki/js/reviewer.js:8:204 at Generator.next (<anonymous>) at http://127.0.0.1:64795/_anki/js/reviewer.js:1:2920 at new Promise (<anonymous>) at Ls (http://127.0.0.1:64795/_anki/js/reviewer.js:1:2717) at Fi (http://127.0.0.1:64795/_anki/js/reviewer.js:8:64) at http://127.0.0.1:64795/_anki/js/reviewer.js:8:429 initPractice @ VM401:7 (anonymous) @ VM401:135 za @ reviewer.js:7 (anonymous) @ reviewer.js:8 (anonymous) @ reviewer.js:1 Ls @ reviewer.js:1 Fi @ reviewer.js:8 (anonymous) @ reviewer.js:8 VM403:43 Uncaught (in promise) DOMException: Failed to read the 'localStorage' property from 'Window': Storage is disabled inside 'data:' URLs. at doPractice (<anonymous>:43:13) at <anonymous>:68:5 at za (http://127.0.0.1:64795/_anki/js/reviewer.js:7:94216) at http://127.0.0.1:64795/_anki/js/reviewer.js:8:204 at Generator.next (<anonymous>) at http://127.0.0.1:64795/_anki/js/reviewer.js:1:2920 at new Promise (<anonymous>) at Ls (http://127.0.0.1:64795/_anki/js/reviewer.js:1:2717) at Fi (http://127.0.0.1:64795/_anki/js/reviewer.js:8:64) at http://127.0.0.1:64795/_anki/js/reviewer.js:8:429 doPractice @ VM403:43 (anonymous) @ VM403:68 za @ reviewer.js:7 (anonymous) @ reviewer.js:8 (anonymous) @ reviewer.js:1 Ls @ reviewer.js:1 Fi @ reviewer.js:8 (anonymous) @ reviewer.js:8

@camerooncameroon
Copy link
Author

Also some screenshots from Android:
image
image

@krmanik
Copy link
Owner

krmanik commented Oct 4, 2022

I have released the fix. The latest version can be used. The issue is that lower version of Anki does not support localStorage so I have used anki-persistence for that.

@camerooncameroon
Copy link
Author

@krmanik
Downloaded the updated version, now everything is cool.
Thank you!
One small question, not an issue to open new thread:
can the drawing color be also tone-specific? (now black/white)
You know, like you are using colored ink to draw...
So that the drawing and stroke colors are identical.
Perhaps you can publish a snippet of code to replace or a howto-hint, not to change the release if you don't find it useful

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 a pull request may close this issue.

2 participants