13 lines
340 B
JavaScript
13 lines
340 B
JavaScript
|
import { tracked } from "@glimmer/tracking";
|
||
|
import Service from "@ember/service";
|
||
|
|
||
|
export default class GistPreference extends Service {
|
||
|
@tracked
|
||
|
preference = localStorage.getItem("aiGistPreference") || "gists_disabled";
|
||
|
|
||
|
setPreference(value) {
|
||
|
this.preference = value;
|
||
|
localStorage.setItem("aiGistPreference", value);
|
||
|
}
|
||
|
}
|