去掉了自动根据环境判断是否默认显示原文的功能,因为能自动记录了,所以不再必要。

This commit is contained in:
Zhicheng Wang 2016-05-15 22:17:04 +08:00
parent 23eb2191b1
commit bd1d525199
1 changed files with 1 additions and 7 deletions

View File

@ -1,11 +1,5 @@
// TODO: refactor me!
var debugging = location.hostname === 'localhost';
var sourceVisible = localStorage.getItem('source-visible');
if (_.isUndefined(sourceVisible)) {
sourceVisible = debugging;
} else {
sourceVisible = sourceVisible === 'true';
}
var sourceVisible = localStorage.getItem('source-visible') === 'true';
(function ($) {
var nodes = document.querySelectorAll('p, li, h1, h2, h3, h4, h5, h6, header, a, button, small');