Get permissions from location hash on page load

Firefox does not trigger 'hashchange' event on window on page load