add remote workspace load (cors req'd)
This commit is contained in:
parent
d4f2ac21bd
commit
70f9146a96
2 changed files with 15 additions and 0 deletions
|
|
@ -2507,6 +2507,11 @@
|
|||
console.log({octoprint:ohost});
|
||||
}
|
||||
|
||||
// load workspace from url
|
||||
if (SETUP.wrk) {
|
||||
api.settings.import_url(`${proto}//${SETUP.wrk[0]}`, true);
|
||||
}
|
||||
|
||||
// bind this to UI so main can call it on settings import
|
||||
ui.sync = function() {
|
||||
const current = settings();
|
||||
|
|
|
|||
Loading…
Reference in a new issue