Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2023-11-01 02:37:03 +03:00
parent 3984b2422e
commit bb3ba95ae3

View File

@ -2311,6 +2311,9 @@ Object.assign(
attributeChangedCallback(name, before, after){
if(name == 'local-storage'){
this.__localStorage = after
// XXX setting code here because we will load at .setup(..)
// ...the problem is that if we change the attr
// we need to call .load(..)
this.code = localStorage[after] ?? '' }
if(name == 'session-storage'){