Change VerifyPlugin to VerifyPlugins.

This commit is contained in:
Kenshin 2019-06-25 11:07:34 +08:00
parent f786639c53
commit 06208e2844
2 changed files with 3 additions and 3 deletions

View File

@ -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 );
}

View File

@ -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,
}