mirror of
https://github.com/Kenshin/simpread.git
synced 2026-02-01 15:41:29 +00:00
Change VerifyPlugin to VerifyPlugins.
This commit is contained in:
parent
f786639c53
commit
06208e2844
@ -184,7 +184,7 @@ function vernotify( first ) {
|
||||
}
|
||||
///////////////////////////////////////////////////////////////////////////
|
||||
// verify and remove old plugins
|
||||
ver.VerifyPlugin( storage.option, version ) && storage.Write( () => {
|
||||
ver.VerifyPlugins( storage.option, version ) && storage.Write( () => {
|
||||
new Notify().Render({ content: `新版升级后,会自动删除一些已失效的插件,详细请看 <a href="http://ksria.com/simpread/welcome/version_${version}.html#badplugins" target="_blank">自定义主题</a>`, state: "holdon" });
|
||||
}, storage.simpread );
|
||||
}
|
||||
|
||||
@ -506,7 +506,7 @@ function FixSubver( patch, target ) {
|
||||
* @param {string} version
|
||||
* @param {object} option
|
||||
*/
|
||||
function VerifyPlugin( ver, option ) {
|
||||
function VerifyPlugins( ver, option ) {
|
||||
try {
|
||||
if ( option.plugins.length == 0 ) return false;
|
||||
const str = option.plugins.join( "," );
|
||||
@ -533,5 +533,5 @@ export {
|
||||
Notify,
|
||||
Compare,
|
||||
FixSubver,
|
||||
VerifyPlugin,
|
||||
VerifyPlugins,
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user