patch-1
master
I'm pretty sure that here should be `global` instead of `window`. Does `window` work for you? I have a ReferenceError.