From 82140af56dfe5e065ffa26336d44dd745dafeebc Mon Sep 17 00:00:00 2001 From: Oliver-Akins Date: Mon, 28 Sep 2020 22:31:46 -0600 Subject: [PATCH] Add documentation for local/session storage keys --- BrowserStorage.md | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 BrowserStorage.md diff --git a/BrowserStorage.md b/BrowserStorage.md new file mode 100644 index 0000000..adb8c01 --- /dev/null +++ b/BrowserStorage.md @@ -0,0 +1,6 @@ +This document details the data stored in localStorage and sessionStorage of the browser. + +| Key | Data Type | Description +| --------- | --------- | ------------- +| game-code | String | The current game code the player is in, if this is not set, then they are not in a game +| is-host | Boolean | If the player is the host of the game or not. \ No newline at end of file