Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Patch for Website #19

Open
wants to merge 3 commits into
base: dev
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 13 additions & 7 deletions server.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,19 @@ import {StaticRouter} from 'react-router';
var legacyPort = 8080;
const socket = process.env.socket || '/run/node/node.sock';

global.window = {
addEventListener: () => {},
scrollTo: () => {}
};
global.document = {
addEventListener: () => {}
};
function refreshGlobal() {
global.window = {
addEventListener: () => {},
scrollTo: () => {},
innerWidth: 1200,
innerHeight: 800,
isServer: true
};
global.document = {
addEventListener: () => {}
};
}
refreshGlobal();

var AppComponent = require('./src/App').default;

Expand Down
20 changes: 13 additions & 7 deletions sslServer.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,19 @@ var sslPort = 8443;
var port = 8081;
var legacyPort = 8080;

global.window = {
addEventListener: () => {},
scrollTo: () => {}
};
global.document = {
addEventListener: () => {}
};
function refreshGlobal() {
global.window = {
addEventListener: () => {},
scrollTo: () => {},
innerWidth: 1200,
innerHeight: 800,
isServer: true
};
global.document = {
addEventListener: () => {}
};
}
refreshGlobal();

var AppComponent = require('./src/App').default;

Expand Down
20 changes: 13 additions & 7 deletions testServer.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,19 @@ import {StaticRouter} from 'react-router';
var port = 8081;
var legacyPort = 8080;

global.window = {
addEventListener: () => {},
scrollTo: () => {}
};
global.document = {
addEventListener: () => {}
};
function refreshGlobal() {
global.window = {
addEventListener: () => {},
scrollTo: () => {},
innerWidth: 1200,
innerHeight: 800,
isServer: true
};
global.document = {
addEventListener: () => {}
};
}
refreshGlobal();

var AppComponent = require('./src/App').default;

Expand Down