Skip to content

Commit

Permalink
Merge pull request #2619 from Azmoria/Internal---adjust-setting-local…
Browse files Browse the repository at this point in the history
…storage-to-persist

Internal - adjust setting localstorage to persist
  • Loading branch information
Azmoria authored Oct 29, 2024
2 parents 2849221 + 80a8139 commit 59949f9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Token.js
Original file line number Diff line number Diff line change
Expand Up @@ -476,7 +476,7 @@ class Token {
delete window.all_token_objects[id];
if (id in window.JOURNAL.notes) {
delete window.JOURNAL.notes[id];
localStorage.setItem('Journal' + window.gameId, JSON.stringify(window.JOURNAL.notes));
window.JOURNAL.persist();
}
}

Expand Down Expand Up @@ -4584,7 +4584,7 @@ function paste_selected_tokens(x, y) {
window.JOURNAL.notes[newId] = structuredClone(window.JOURNAL.notes[id]);
let copiedNote = window.JOURNAL.notes[newId];
copiedNote.title = window.TOKEN_OBJECTS[id].options.name;
localStorage.setItem('Journal' + window.gameId, JSON.stringify(window.JOURNAL.notes));
window.JOURNAL.persist();
window.MB.sendMessage('custom/myVTT/note',{
id: newId,
note:copiedNote
Expand Down

0 comments on commit 59949f9

Please sign in to comment.