Studio: Add deeplinks, fix #1926

This commit is contained in:
Pieter Vander Vennet 2024-04-28 00:23:20 +02:00
parent 204027b4e9
commit 504cc1fe33
5 changed files with 82 additions and 40 deletions

View file

@ -0,0 +1,11 @@
import { Store, UIEventSource } from "../../Logic/UIEventSource"
import Hash from "../../Logic/Web/Hash"
export default class StudioHashSetter {
constructor(mode: "layer" | "theme", tab: Store<number>, name: Store<string>) {
tab.mapD(tab => {
Hash.hash.setData(mode + "/" + name.data + "/" + tab)
}
, [name])
}
}