Fix file separator for Windows

This commit is contained in:
Jeremy Ruston 2024-04-16 13:47:15 +01:00
parent aafe775779
commit ea318bab6e
1 changed files with 2 additions and 2 deletions

View File

@ -67,7 +67,7 @@ function loadStore(store) {
for(var p=0; p<pluginFolders.length; p++) {
const pluginFolderName = pluginFolders[p];
if(!$tw.boot.excludeRegExp.test(pluginFolderName)) {
var pluginFields = $tw.loadPluginFolder(path.resolve(folder,"./" + pluginFolderName));
var pluginFields = $tw.loadPluginFolder(path.resolve(folder,pluginFolderName));
if(pluginFields && pluginFields.title) {
savePlugin(pluginFields,type,publisher,pluginFolderName);
}
@ -79,7 +79,7 @@ function loadStore(store) {
for(var t=0; t<publisherFolders.length; t++) {
const publisherFolderName = publisherFolders[t];
if(!$tw.boot.excludeRegExp.test(publisherFolderName)) {
collectPlugins(path.resolve(folder,"./" + publisherFolderName),type,publisherFolderName);
collectPlugins(path.resolve(folder,publisherFolderName),type,publisherFolderName);
}
}
};