Server now works and compiles

This commit is contained in:
2018-07-01 11:17:29 +10:00
parent 05f3e4a51e
commit 7ef7ee6d35
7 changed files with 195 additions and 21 deletions

View File

@ -41,7 +41,7 @@ import Window95, {
const ExistingWorkFrame = (props) => {
let fakeURL = props.href;
if(!fakeURL.startsWith("http")) {
if(!fakeURL.startsWith("http") && typeof window !== typeof undefined) {
fakeURL = window.location.protocol + fakeURL;
}