Skip to content
Snippets Groups Projects
Commit 073ad077 authored by Ole Voldsæter's avatar Ole Voldsæter
Browse files

mer opprydding

parent a04e9e7b
No related branches found
No related tags found
No related merge requests found
......@@ -25,10 +25,7 @@ var api_endpoint = 'https://ordbok-dev.aws.uib.no/cache/article'
window.onpopstate = function (event) {
if (event.state) {
console.log(event)
app.__vue__._data.article = event.state
} else {
console.log(event)
}
}
......@@ -82,7 +79,7 @@ export default {
if(event._source){
this.search_results = []
this.article = event._source
history.pushState(this.article, this.article.lemmas.map(x => x.word).join(', '), event._id)
history.pushState(this.article, '', event._id)
}else{
window.location.href = '/' + this.lang + "/search?q=" + event.q
}
......@@ -103,7 +100,7 @@ export default {
.then(function(response){
self.article = response.data._source
self.waiting = false
history.replaceState(self.article, self.article.lemmas.map(x => x.word).join(', '))
history.replaceState(self.article, '')
})
}
else {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment