forked from 0x2620/pandora
update getHash
This commit is contained in:
parent
f8596a28e7
commit
fc97d25d7b
1 changed files with 1 additions and 10 deletions
|
@ -701,16 +701,7 @@ pandora.getHash = function(state, callback) {
|
|||
isPrint = state.hash && state.hash.anchor == 'print',
|
||||
printKeys = [],
|
||||
removeKeys = [];
|
||||
if (state.hash && state.hash.anchor) {
|
||||
if (state.page == 'help') {
|
||||
if (
|
||||
state.hash.anchor == 'help'
|
||||
|| !Ox.getObjectById(pandora.site.help, state.hash.anchor)
|
||||
) {
|
||||
delete state.hash.anchor;
|
||||
}
|
||||
}
|
||||
} else if (state.hash) {
|
||||
if (state.hash && state.hash.anchor && !isEmbed && !isPrint) {
|
||||
delete state.hash.anchor;
|
||||
}
|
||||
if (state.hash && state.hash.query) {
|
||||
|
|
Loading…
Reference in a new issue