fix electron check

This commit is contained in:
Mo Bitar
2017-01-15 12:54:44 -06:00
parent c70a06b190
commit 828730dcba

View File

@@ -24,7 +24,7 @@ angular.module('app.frontend')
return $location.path();
});
var runningInElectron = process.versions['electron'];
var runningInElectron = window && window.process && window.process.type && window.process.versions["electron"];
if(!runningInElectron) {
console.log("Enabling HTML5 Mode.")
if (window.history && window.history.pushState) {