去掉了自动根据环境判断是否默认显示原文的功能,因为能自动记录了,所以不再必要。
This commit is contained in:
parent
23eb2191b1
commit
bd1d525199
|
@ -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');
|
||||
|
|
Loading…
Reference in New Issue