fix url import of workspaces (kmz only)
This commit is contained in:
parent
204b491d92
commit
73b5d9abae
2 changed files with 2 additions and 2 deletions
|
|
@ -2586,7 +2586,7 @@ gapp.register("kiri.init", [], (root, exports) => {
|
||||||
|
|
||||||
// load workspace from url
|
// load workspace from url
|
||||||
if (SETUP.wrk) {
|
if (SETUP.wrk) {
|
||||||
api.settings.import_url(`${proto}//${SETUP.wrk[0]}`, true);
|
api.settings.import_url(`${proto}//${SETUP.wrk[0]}`, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
// bind this to UI so main can call it on settings import
|
// bind this to UI so main can call it on settings import
|
||||||
|
|
|
||||||
|
|
@ -593,7 +593,7 @@ function settingsImport(data, ask) {
|
||||||
|
|
||||||
function settingsImportUrl(url, ask) {
|
function settingsImportUrl(url, ask) {
|
||||||
fetch(url).then(r => r.arrayBuffer()).then(a => {
|
fetch(url).then(r => r.arrayBuffer()).then(a => {
|
||||||
settingsImport(a, ask);
|
settingsImportZip(a, ask);
|
||||||
}).catch(error => {
|
}).catch(error => {
|
||||||
console.log({workspace_url: url, error: error.message || error});
|
console.log({workspace_url: url, error: error.message || error});
|
||||||
api.show.alert('workspace load failed');
|
api.show.alert('workspace load failed');
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue