Remove unused code from old Chrome history workaround

refs #6277
This commit is contained in:
Matthias Jentsch 2015-09-10 17:30:46 +02:00
parent c379b76cea
commit d00e854f4b
1 changed files with 1 additions and 13 deletions

View File

@ -30,11 +30,6 @@
* Whether the History API is enabled
*/
this.enabled = false;
/**
* Workaround for Chrome onload popstate event
*/
this.pushedSomething = false;
};
Icinga.History.prototype = {
@ -150,17 +145,10 @@
onHistoryChange: function (event) {
var self = event.data.self,
icinga = self.icinga,
onload;
icinga = self.icinga;
icinga.logger.debug('Got a history change');
// Chrome workaround:
onload = !self.pushedSomething && location.href === self.initialUrl;
self.pushedSomething = true;
// if (onload) { return; } // Temporarily disabled
// End of Chrome workaround
// We might find browsers showing strange behaviour, this log could help
if (event.originalEvent.state === null) {
icinga.logger.debug('No more history steps available');