From 2b38d61df86b3024e9e08fd99a416d98a3476fba Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Sat, 26 May 2012 11:37:17 +0000 Subject: [PATCH] add onload hook --- static/js/pandora.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/static/js/pandora.js b/static/js/pandora.js index 43f0c734..94db4cee 100644 --- a/static/js/pandora.js +++ b/static/js/pandora.js @@ -326,6 +326,12 @@ appPanel }); pandora.site.sectionButtonsWidth = pandora.$ui.sectionButtons.width() + 8; + if(localStorage && localStorage['pandora.onload']) { + try { + eval(localStorage['pandora.onload']) + } catch(e) { + } + } }); }