mirror of https://github.com/kurisufriend/frontend
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
301 B
13 lines
301 B
const DEFAULT_INSTANCE = "test.cynic.moe";
|
|
|
|
function get_instance() {
|
|
return localStorage.getItem("instance") || DEFAULT_INSTANCE;
|
|
}
|
|
|
|
function set_instance(addr) {
|
|
localStorage.setItem("instance", addr);
|
|
}
|
|
|
|
function clear_instance() {
|
|
localStorage.setItem("instance", DEFAULT_INSTANCE);
|
|
}
|
|
|