mirror of
https://github.com/publiclab/image-sequencer.git
synced 2025-12-12 03:10:03 +01:00
add importString and refactor (#283)
* add importString and refactor Signed-off-by: tech4GT <varun.gupta1798@gmail.com> * update tests and minor changes Signed-off-by: tech4GT <varun.gupta1798@gmail.com> * update importImage Signed-off-by: tech4GT <varun.gupta1798@gmail.com>
This commit is contained in:
committed by
Jeffrey Warren
parent
2b07ecdb36
commit
a0f7e6c766
@@ -14,10 +14,7 @@ function DefaultHtmlSequencerUi(_sequencer, options) {
|
||||
var hash = getUrlHashParameter("steps");
|
||||
|
||||
if (hash) {
|
||||
var stepsFromHash = _sequencer.importStringtoJson(hash);
|
||||
stepsFromHash.forEach(function eachStep(stepObj) {
|
||||
_sequencer.addSteps(stepObj.name,stepObj.options);
|
||||
});
|
||||
_sequencer.importString(hash);
|
||||
_sequencer.run();
|
||||
}
|
||||
setUrlHashParameter("steps", sequencer.toString());
|
||||
|
||||
Reference in New Issue
Block a user