1
0
mirror of https://github.com/misskey-dev/misskey.git synced 2026-06-10 23:34:05 +02:00
This commit is contained in:
syuilo
2026-04-15 16:18:15 +09:00
parent ddfd9f46f3
commit db5f64b097
2 changed files with 3 additions and 2 deletions

View File

@@ -287,11 +287,11 @@ function getRgb(hex: string | number): [number, number, number] | null {
}
function save() {
localStorage.setItem('roomData', JSON.stringify(controller.roomState));
localStorage.setItem('roomData', JSON.stringify(controller.roomState.value));
}
function expor() {
const dataStr = 'data:text/json;charset=utf-8,' + encodeURIComponent(JSON.stringify(controller.roomState));
const dataStr = 'data:text/json;charset=utf-8,' + encodeURIComponent(JSON.stringify(controller.roomState.value));
const dlAnchorElem = window.document.createElement('a');
dlAnchorElem.setAttribute('href', dataStr);
dlAnchorElem.setAttribute('download', 'room.json');