mirror of
https://github.com/next-theme/hexo-theme-next.git
synced 2026-01-20 19:02:33 +00:00
Update CONFIG.quicklink.ignores option
This commit is contained in:
parent
b51fedfb2d
commit
6092e9ec9b
9
source/js/third-party/quicklink.js
vendored
9
source/js/third-party/quicklink.js
vendored
@ -3,14 +3,7 @@
|
|||||||
(function() {
|
(function() {
|
||||||
if (typeof CONFIG.quicklink.ignores === 'string') {
|
if (typeof CONFIG.quicklink.ignores === 'string') {
|
||||||
const ignoresStr = `[${CONFIG.quicklink.ignores}]`;
|
const ignoresStr = `[${CONFIG.quicklink.ignores}]`;
|
||||||
try {
|
CONFIG.quicklink.ignores = JSON.parse(ignoresStr);
|
||||||
CONFIG.quicklink.ignores = JSON.parse(ignoresStr);
|
|
||||||
} catch {
|
|
||||||
// eslint-disable-next-line no-console
|
|
||||||
console.error('Setting regex and function in config file is deprecated. Try setting `CONFIG.quicklink.ignores` in any script code.');
|
|
||||||
// eslint-disable-next-line no-eval
|
|
||||||
CONFIG.quicklink.ignores = eval(ignoresStr);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
let resetFn = null;
|
let resetFn = null;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user