swarmcity / sc-boardwalk

NO LONGER ACTIVE, current development of dApp in SwarmCitySite
25 stars 13 forks source link

Brave browser #253

Open p-s-dev opened 7 years ago

p-s-dev commented 7 years ago

Actual behavior: Blank page when viewing sc-boardwalk

Console errors:

polymer-micro.html:342 Could not save to localStorage. Try enabling cookies for this page. DOMException: Failed to read the 'localStorage' property from 'Window': Access is denied for this document. at HTMLElement._load (http://127.0.0.1:8081/components/sc-boardwalk/bower_components/iron-localstorage/iron-localstorage.html:183:23) at HTMLElement.reload (http://127.0.0.1:8081/components/sc-boardwalk/bower_components/iron-localstorage/iron-localstorage.html:174:12) at Debouncer.complete (http://127.0.0.1:8081/components/sc-boardwalk/bower_components/polymer/polymer-mini.html:2167:10) at Debouncer.boundComplete (http://127.0.0.1:8081/components/sc-boardwalk/bower_components/polymer/polymer-mini.html:2144:6) at Object._atEndOfMicrotask (http://127.0.0.1:8081/components/sc-boardwalk/bower_components/polymer/polymer-mini.html:2122:1) at MutationObserver.window.MutationObserver.observe.characterData (http://127.0.0.1:8081/components/sc-boardwalk/bower_components/polymer/polymer-mini.html:2137:15)

polymer-micro.html:342 could not parse local storage value undefined

Expected behavior: A notice tells user browser is not supported since it can not save to local storage

Steps to reproduce the problem:

view first page

bkawk commented 7 years ago

There is an error property called "errorMessage" which represents Last error encountered while saving/loading items. This can be used to handle the error

https://www.webcomponents.org/element/PolymerElements/iron-localstorage/elements/iron-localstorage