From 2ca2cc95972ceab6a0d5be77e274e8146ea0af97 Mon Sep 17 00:00:00 2001 From: Ruud <ruud@crashdummy.nl> Date: Mon, 4 Feb 2013 22:36:22 +0100 Subject: [PATCH] Don't fire openpage twice on start --- couchpotato/static/scripts/couchpotato.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/couchpotato/static/scripts/couchpotato.js b/couchpotato/static/scripts/couchpotato.js index a94f5d4e..8f4e665f 100644 --- a/couchpotato/static/scripts/couchpotato.js +++ b/couchpotato/static/scripts/couchpotato.js @@ -24,8 +24,8 @@ var CouchPotato = new Class({ if(window.location.hash) History.handleInitialState(); - - self.openPage(window.location.pathname); + else + self.openPage(window.location.pathname); History.addEvent('change', self.openPage.bind(self)); self.c.addEvent('click:relay(a[href^=/]:not([target]))', self.pushState.bind(self)); -- GitLab