WIP
This commit is contained in:
parent
60f85a962c
commit
718287360e
@ -34,14 +34,14 @@ class AnkiConnect:
|
||||
|
||||
self.handlers = {
|
||||
'addNote': self.apiAddNote,
|
||||
'apiCanAddNote': self.apiCanAddNote,
|
||||
'apiCanAddNotes': self.apiCanAddNotes,
|
||||
'canAddNote': self.apiCanAddNote,
|
||||
'canAddNotes': self.apiCanAddNotes,
|
||||
'getVersion': self.apiGetVersion,
|
||||
}
|
||||
|
||||
|
||||
def advance(self):
|
||||
enabled = self.preferences['enableRemoteApi']
|
||||
enabled = self.preferences['enableAnkiConnect']
|
||||
|
||||
if self.server is None and enabled:
|
||||
self.server = AjaxServer(self.handler)
|
||||
|
Loading…
Reference in New Issue
Block a user