diff --git a/assets/instance_buttons.js b/assets/instance_buttons.js index be2565b..d5bbf53 100644 --- a/assets/instance_buttons.js +++ b/assets/instance_buttons.js @@ -33,10 +33,10 @@ import {SLOTS, normalize_known, known_load, known_save} from './known_instances. "instance": "mastodon.social", "hits": 0 }], - misskey:[ + misskey:[{ "instance": "misskey.io", "hits": 0 - ], + }], }; } known_save(known) diff --git a/assets/known_instances.js b/assets/known_instances.js index 004aa06..cd6fff6 100644 --- a/assets/known_instances.js +++ b/assets/known_instances.js @@ -8,10 +8,10 @@ function load_and_migrate_old(){ olddata = JSON.parse(olddata) let newdata = { mastodon: olddata, - misskey: [ + misskey: [{ "instance": "misskey.io", "hits": 0 - ] + }] }; known_save(newdata); localStorage.removeItem(OLD_KEY);