PR: Custom Color Choice (#38)
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
import { tracked } from "@glimmer/tracking";
|
||||
import { action } from "@ember/object";
|
||||
import Service from "@ember/service";
|
||||
|
||||
export default class customColor extends Service {
|
||||
@tracked color = localStorage.getItem("d-customColor") || "horizon";
|
||||
|
||||
@action
|
||||
setColor(color) {
|
||||
this.color = color;
|
||||
localStorage.setItem("d-customColor", color);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user