Commit 6fb0136e77ef47dbeebce12754ebcf25ed3e955c
make sure there\'s no race condition if the browser is slow to load the remote
Ev Bogue committed on 7/2/2018, 2:54:37 PMParent: df1433307a5a4faa316f72012211f6d8138f6e19
Files changed
config.js | changed |
config.js | |||
---|---|---|---|
@@ -16,9 +16,11 @@ | |||
16 | 16 … | var config = JSON.parse(localStorage[host]) | |
17 | 17 … | getConfig() | |
18 | 18 … | } else { | |
19 | 19 … | getConfig() | |
20 | - location.reload() | ||
20 … | + setTimeout(function () { | ||
21 … | + location.reload() | ||
22 … | + }, 1000) | ||
21 | 23 … | } | |
22 | 24 … | ||
23 | 25 … | config.blobsUrl = host + '/blobs/get/' | |
24 | 26 … | config.emojiUrl = host + '/img/emoji/' |
Built with git-ssb-web