guardian / scribe

DEPRECATED: A rich text editor framework for the web platform
http://guardian.github.io/scribe/
Apache License 2.0
3.51k stars 245 forks source link

Server-side rendering: default value for window #441

Closed rrees closed 8 years ago

rrees commented 8 years ago

When the window global is undefined (in a Node environment) define it to be undefined.

Ping @szyablitsky

szyablitsky commented 8 years ago

I tried this solution locally in node_modules folder. And it works. Thank you. Let's merge it :+1:

szyablitsky commented 8 years ago

@rrees I updated package and enabled server side rendering again. All is working like a charm. Thank you again! :satisfied:

rrees commented 8 years ago

@szyablitsky Great news!