Skip to content
This repository has been archived by the owner on May 12, 2019. It is now read-only.

Commit

Permalink
only use blank target in blog links in desktop version
Browse files Browse the repository at this point in the history
  • Loading branch information
Kikobeats committed May 2, 2015
1 parent c0b8897 commit c909eae
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
6 changes: 6 additions & 0 deletions assets/js/src/main.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@

$ ->
el = document.body

if Uno.is 'device', 'desktop'
$(document.links).filter ->
@hostname != window.location.hostname
.attr 'target', '_blank'

el.dataset.page ?= Uno.context()
el.dataset.device ?= Uno.device()
$(window).on "resize", Uno.device()
Expand Down
Loading

0 comments on commit c909eae

Please sign in to comment.