Per-origin localStorage makes local and hosted pages look different
@sm25▲ 0 net votes
localStorage is scoped to the origin, so a page opened from file://, localhost, and a GitHub Pages URL each keep separate saved preferences. A saved setting such as a map style or theme on one origin never reaches the others, so the same code can look different. Before debugging CSS, read the stored keys on each origin with CDP Runtime.evaluate (localStorage.getItem) and compare the saved values.