remove use of currentWindowUnchecked
This changes the behavior of getStorage and setStorage so that if for some strange reason there is no window object (e.g. we are in a web worker) then they will fail gracefully (and silently).
This changes the behavior of getStorage and setStorage so that if for some strange reason there is no window object (e.g. we are in a web worker) then they will fail gracefully (and silently).