electron log

This commit is contained in:
Mo Bitar
2017-01-15 12:49:50 -06:00
parent 8076009fb4
commit c70a06b190

View File

@@ -26,12 +26,16 @@ angular.module('app.frontend')
var runningInElectron = process.versions['electron']; var runningInElectron = process.versions['electron'];
if(!runningInElectron) { if(!runningInElectron) {
console.log("Enabling HTML5 Mode.")
if (window.history && window.history.pushState) { if (window.history && window.history.pushState) {
$locationProvider.html5Mode({ $locationProvider.html5Mode({
enabled: true, enabled: true,
requireBase: false requireBase: false
}); });
} }
} else {
$locationProvider.html5Mode(false);
console.log("Disabling HTML5 Mode.")
} }
}); });