mirror of
https://github.com/ankitects/anki.git
synced 2025-11-06 12:47:11 -05:00
Give main webview api access
This commit is contained in:
parent
b2fe07462a
commit
fc880259a8
2 changed files with 1 additions and 3 deletions
|
|
@ -814,9 +814,6 @@ def _check_dynamic_request_permissions():
|
|||
"/_anki/setSchedulingStates",
|
||||
"/_anki/i18nResources",
|
||||
"/_anki/congratsInfo",
|
||||
# TODO: Correctly set the auth token
|
||||
"/_anki/nextCardData",
|
||||
"/_anki/setFlag",
|
||||
):
|
||||
pass
|
||||
else:
|
||||
|
|
|
|||
|
|
@ -142,6 +142,7 @@ class AnkiWebPage(QWebEnginePage):
|
|||
AnkiWebViewKind.IMPORT_ANKI_PACKAGE,
|
||||
AnkiWebViewKind.IMPORT_CSV,
|
||||
AnkiWebViewKind.IMPORT_LOG,
|
||||
AnkiWebViewKind.MAIN,
|
||||
)
|
||||
|
||||
global _profile_with_api_access, _profile_without_api_access
|
||||
|
|
|
|||
Loading…
Reference in a new issue