mirror of
https://github.com/next-theme/hexo-theme-next.git
synced 2026-01-18 18:33:42 +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() {
|
||||
if (typeof CONFIG.quicklink.ignores === 'string') {
|
||||
const ignoresStr = `[${CONFIG.quicklink.ignores}]`;
|
||||
try {
|
||||
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);
|
||||
}
|
||||
CONFIG.quicklink.ignores = JSON.parse(ignoresStr);
|
||||
}
|
||||
|
||||
let resetFn = null;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user