forked from 0x2620/pandora
add loaded event for site scripts
This commit is contained in:
parent
0fadccfe35
commit
0e187aa24c
1 changed files with 2 additions and 0 deletions
|
@ -432,6 +432,8 @@ appPanel
|
||||||
});
|
});
|
||||||
Ox.Fullscreen.bind('exit', pandora.UI.set);
|
Ox.Fullscreen.bind('exit', pandora.UI.set);
|
||||||
pandora.site.sectionButtonsWidth = pandora.$ui.sectionButtons.width() + 8;
|
pandora.site.sectionButtonsWidth = pandora.$ui.sectionButtons.width() + 8;
|
||||||
|
// allow site scripts to run after pandora is loaded
|
||||||
|
pandora.triggerEvent('loaded')
|
||||||
loadUserScript && pandora.loadUserScript();
|
loadUserScript && pandora.loadUserScript();
|
||||||
document.removeEventListener && document.removeEventListener('keydown', onKeydown);
|
document.removeEventListener && document.removeEventListener('keydown', onKeydown);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue