This commit is contained in:
qingwei.li 2016-11-26 18:52:35 +08:00
parent 4f27fff283
commit 2cf91da2f0
2 changed files with 1 additions and 7 deletions

View File

@ -2249,8 +2249,6 @@ var bindEvent = function () {
var DEFAULT_OPTS = {
el: '#app',
title: document.title,
sep: ' - ',
repo: ''
};
@ -2266,7 +2264,6 @@ var Docsify = function Docsify (opts) {
Docsify.installed = true;
this.opts = Object.assign({}, opts, DEFAULT_OPTS);
this.opts.title = (this.opts.title ? this.opts.sep : '') + this.opts.title;
this.replace = true;
this.dom = document.querySelector(this.opts.el);
@ -2297,9 +2294,6 @@ Docsify.prototype.load = function load () {
};
Docsify.prototype.render = function render$1 (content) {
if (this.loc.slice(1) !== 'README') {
document.title = this.loc.slice(1) + this.opts.title;
}
this.dom[this.replace ? 'outerHTML' : 'innerHTML'] = render(content, this.opts);
};

2
lib/docsify.min.js vendored

File diff suppressed because one or more lines are too long