mirror of
https://thingvellir.net/git/overte
synced 2025-03-27 23:52:03 +01:00
Add sandbox option to load home locally
This commit is contained in:
parent
925375fb7a
commit
cc16dc07df
1 changed files with 14 additions and 0 deletions
|
@ -515,6 +515,20 @@ function maybeInstallDefaultContentSet(onComplete) {
|
|||
return;
|
||||
}
|
||||
|
||||
console.log("Found contentPath:" + argv.contentPath);
|
||||
if (argv.contentPath) {
|
||||
fs.copy(argv.contentPath, getRootHifiDataDirectory(), function (err) {
|
||||
if (err) {
|
||||
console.log('Could not copy home content: ' + err);
|
||||
return console.error(err)
|
||||
}
|
||||
console.log('Copied home content over to: ' + getRootHifiDataDirectory());
|
||||
onComplete();
|
||||
});
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
// Show popup
|
||||
var window = new BrowserWindow({
|
||||
icon: appIcon,
|
||||
|
|
Loading…
Reference in a new issue