Display an error when an invalid hash in used

This commit is contained in:
yflory
2019-02-06 15:35:27 +01:00
parent 2815c96ce8
commit 6c1da07c60
3 changed files with 40 additions and 9 deletions

View File

@@ -134,6 +134,11 @@ define([
});
}));
}).nThen(function (waitFor) {
if (!Utils.Hash.isValidHref(window.location.href)) {
waitFor.abort();
return void sframeChan.event('EV_LOADING_ERROR', 'INVALID_HASH');
}
$('#sbox-iframe').focus();
sframeChan.on('EV_CACHE_PUT', function (x) {