mirror of
https://github.com/publiclab/image-sequencer.git
synced 2025-12-14 20:30:01 +01:00
BuildFix (BugFix)
This commit is contained in:
@@ -23,7 +23,10 @@ module.exports = function UserInterface(UI,options) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
UI.drawing = UI.drawing || function() {
|
UI.drawing = UI.drawing || function() {
|
||||||
if(options.inBrowser) {
|
if (options.ui == "none") {
|
||||||
|
// No UI
|
||||||
|
}
|
||||||
|
else if(options.inBrowser) {
|
||||||
// Overlay a loading spinner
|
// Overlay a loading spinner
|
||||||
console.log("Drawing Step \""+identity.stepName+"\" on \""+identity.imageName+"\".");
|
console.log("Drawing Step \""+identity.stepName+"\" on \""+identity.imageName+"\".");
|
||||||
}
|
}
|
||||||
@@ -34,7 +37,10 @@ module.exports = function UserInterface(UI,options) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
UI.drawn = UI.drawn || function(output) {
|
UI.drawn = UI.drawn || function(output) {
|
||||||
if(options.inBrowser) {
|
if (options.ui == "none") {
|
||||||
|
// No UI
|
||||||
|
}
|
||||||
|
else if(options.inBrowser) {
|
||||||
// Update the DIV Element
|
// Update the DIV Element
|
||||||
// Hide the laoding spinner
|
// Hide the laoding spinner
|
||||||
console.log("Drawn Step \""+identity.stepName+"\" on \""+identity.imageName+"\".");
|
console.log("Drawn Step \""+identity.stepName+"\" on \""+identity.imageName+"\".");
|
||||||
@@ -45,11 +51,13 @@ module.exports = function UserInterface(UI,options) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
UI.remove = UI.remove || function() {
|
UI.remove = UI.remove || function(callback) {
|
||||||
if(options.inBrowser) {
|
if(options.ui == "null"){
|
||||||
|
// No UI
|
||||||
|
}
|
||||||
|
else if(options.inBrowser) {
|
||||||
// Remove the DIV Element
|
// Remove the DIV Element
|
||||||
console.log("Removing Step \""+identity.stepName+"\" of \""+identity.imageName+"\".");
|
console.log("Removing Step \""+identity.stepName+"\" of \""+identity.imageName+"\".");
|
||||||
image.remove();
|
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
// Delete the NodeJS Object
|
// Delete the NodeJS Object
|
||||||
|
|||||||
Reference in New Issue
Block a user