Fixed safari problem.
This commit is contained in:
parent
9e3bf0a42a
commit
2cd8315d67
1 changed files with 1 additions and 1 deletions
|
@ -156,7 +156,7 @@ class Index extends App.Controller
|
|||
@frontendTimeUpdate()
|
||||
|
||||
# scrall to article if given
|
||||
if @article_id
|
||||
if @article_id && document.getElementById( 'article-' + @article_id )
|
||||
offset = document.getElementById( 'article-' + @article_id ).offsetTop
|
||||
offset = offset - 45
|
||||
scrollTo = ->
|
||||
|
|
Loading…
Reference in a new issue