Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
amehime committed Sep 24, 2020
1 parent b045672 commit b28ca8f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/helpers/engine.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,12 +89,13 @@ hexo.extend.helper.register('_url', function(path, text, options = {}) {

hexo.extend.helper.register('_cover', function(item, num) {
const { statics, js } = hexo.theme.config;
var that = this

var format = function(img) {
if (img.startsWith('//') || img.startsWith('http')) {
return img
} else {
return url_for.call(this, statics + img)
return url_for.call(that, statics + img)
}
}

Expand Down
2 changes: 2 additions & 0 deletions source/js/_app/global.js
Original file line number Diff line number Diff line change
Expand Up @@ -261,6 +261,8 @@ const loadRecentComment = function (pjax) {
var prefix = 'https://'
var serverURLs = ''
var options = CONFIG.valine
if(!options.appId)
return;
if (!options.serverURLs) {
switch (options.appId.slice(-9)) {
// TAB
Expand Down

0 comments on commit b28ca8f

Please sign in to comment.