mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 22:12:21 -04:00
Provide AnkiWebPage init defaults for existing add-on callers
This commit is contained in:
parent
24bca15fd3
commit
fd2c95a83e
1 changed files with 2 additions and 2 deletions
|
@ -81,8 +81,8 @@ class AnkiWebPage(QWebEnginePage):
|
||||||
def __init__(
|
def __init__(
|
||||||
self,
|
self,
|
||||||
onBridgeCmd: BridgeCommandHandler,
|
onBridgeCmd: BridgeCommandHandler,
|
||||||
kind: AnkiWebViewKind,
|
kind: AnkiWebViewKind = AnkiWebViewKind.DEFAULT,
|
||||||
parent: QObject | None,
|
parent: QObject | None = None,
|
||||||
) -> None:
|
) -> None:
|
||||||
profile = self._profileForPage(kind)
|
profile = self._profileForPage(kind)
|
||||||
QWebEnginePage.__init__(self, profile, parent)
|
QWebEnginePage.__init__(self, profile, parent)
|
||||||
|
|
Loading…
Reference in a new issue