simon-git: puzzles (main): Simon Tatham

Commits to Tartarus hosted VCS tartarus-commits at lists.tartarus.org
Mon Apr 24 14:46:20 BST 2023


TL;DR:
  20d424b Emscripten: change the localStorage key used for preferences.

Repository:     https://git.tartarus.org/simon/puzzles.git
On the web:     https://git.tartarus.org/?p=simon/puzzles.git
Branch updated: main
Committer:      Simon Tatham <anakin at pobox.com>
Date:           2023-04-24 14:46:20

commit 20d424bf1bef4c1ed249ec3c72a859deb926e207
web diff https://git.tartarus.org/?p=simon/puzzles.git;a=commitdiff;h=20d424bf1bef4c1ed249ec3c72a859deb926e207;hp=43db4aa38e83595dc6df245cb952795f9f306ed0
Author: Simon Tatham <anakin at pobox.com>
Date:   Mon Apr 24 14:24:19 2023 +0100

    Emscripten: change the localStorage key used for preferences.
    
    I picked pathname + "#preferences" because Ben suggested either that
    or pathname + "/preferences", and I thought the former sounded neater.
    But Ben now suggests that it might be better to avoid using # in the
    key, just in case anyone should later want to use the whole URL
    _including_ the fragment ID as the key for some other localStorage
    usage - for example, autosaved progress per puzzle _instance_, keying
    off the puzzle URL with a fragment ID in the game description.
    
    So, per Ben's replacement suggestion, change the "#" to a space.

 emcclib.js | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)



More information about the tartarus-commits mailing list