electron log
This commit is contained in:
@@ -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.")
|
||||||
}
|
}
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user