Early version for 3.0.0 part5

This commit is contained in:
henryruhs
2024-09-21 15:02:29 +02:00
parent 0ec3d0acce
commit 9d7db59120
+11 -13
View File
@@ -2,27 +2,25 @@ const path = require('path');
module.exports = async kernel =>
{
const menu = [];
if (!await kernel.exists(__dirname, 'facefusion', '.git'))
{
const menu =
[
menu.push(
{
icon: 'fa-solid fa-plug',
text: 'Install',
href: 'install.js',
params:
{
icon: 'fa-solid fa-plug',
text: 'Install',
href: 'install.js',
params:
{
run: true,
fullscreen: true
}
run: true,
fullscreen: true
}
];
});
return menu;
}
const menu = [];
if (await kernel.running(__dirname, 'run.js'))
{
const memory = await kernel.memory.local[path.resolve(__dirname, 'run.js')];