iabtcf-es
iabtcf-es copied to clipboard
Nuxt on SSR with window & XMLHttpRequest
1.1.4
Module (cmpapi, core)
https://codesandbox.io/s/cmp-on-ssr-1ekp4
I need run @iabtcf/cmpapi on SSR where is no window and XMLHttpRequest object. I can set in nuxt.config in global scope but window break another packegs :/. Only what I can do now is fork and detect global object and use it instead of window. The same thing with XMLHttpRequest.