Skip to content

Commit

Permalink
fix: 新打开窗口bug
Browse files Browse the repository at this point in the history
  • Loading branch information
litten committed Apr 11, 2017
1 parent dc320d9 commit d1f8508
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion source-src/js/fix.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ function init() {
if (yiliaConfig && yiliaConfig.open_in_new) {
let $a = document.querySelectorAll(('.article-entry a:not(.article-more-a)'))
$a.forEach(($em) => {
let target = $em.setAttribute('target');
let target = $em.getAttribute('target');
if (!target || target === '') {
$em.setAttribute('target', '_blank');
}
Expand Down
1 change: 1 addition & 0 deletions source/mobile.40e320.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit d1f8508

Please sign in to comment.