Commit Graph

4 Commits

Author SHA1 Message Date
flan
537c4daa94 Make potential future instances of #8 easier to debug
With hostNum prepended to the address, the client won't even be
able to connect and will return an error message with the invalid
address.

Example:
    requests.exceptions.InvalidSchema: No connection adapters were found for '6http://localhost:27701/sync/meta'
2018-12-24 16:38:10 +01:00
flan
360b2d08ed Make hostNum empty when changing sync server
Should fix an error encountered when the user used AnkiWeb in the
past and receives a JSON decode error because an unrecognized
endpoint (/[somenumber]sync instead of /sync) doesn't return what
the client expects.

Closes #10, fixes #8.
2018-12-24 16:28:34 +01:00
flan
32a81dc028 Make the addon modify anki.sync.SYNC_BASE 2018-12-24 15:50:16 +01:00
flan
ec63149d5c Add GUI addon 2018-08-25 04:26:40 +02:00