[nouns][terms][inclusive] fixes in hash handling

This commit is contained in:
Avris 2021-07-03 12:24:55 +02:00
parent a4aaa59884
commit 84a4114ecf
2 changed files with 5 additions and 1 deletions

View File

@ -30,6 +30,10 @@
return bufferNode;
}
if (linkBuffer === '') {
linkBuffer = '#' + buffer;
}
if (linkBuffer.indexOf('https://') === 0
|| linkBuffer.indexOf('http://') === 0
|| linkBuffer.indexOf('mailto:') === 0

View File

@ -1,7 +1,7 @@
export default {
methods: {
handleHash(namespace, callback, checkAnchor = true) {
if (!process.client || !window.location.hash) {
if (!process.client) {
return;
}