mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-06-04 03:23:27 +02: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;
|
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
|
// Show popup
|
||||||
var window = new BrowserWindow({
|
var window = new BrowserWindow({
|
||||||
icon: appIcon,
|
icon: appIcon,
|
||||||
|
|
Loading…
Reference in a new issue