mirror of
https://github.com/publiclab/image-sequencer.git
synced 2025-12-14 12:19:58 +01:00
Change document.sequencer_image to options.initial_image
This commit is contained in:
@@ -5,6 +5,7 @@ ImageSequencer = function ImageSequencer(options) {
|
||||
options = options || {};
|
||||
options.inBrowser = options.inBrowser || typeof window !== 'undefined';
|
||||
if (options.inBrowser) options.ui = options.ui || require('./UserInterface');
|
||||
options.initial_image = "";
|
||||
|
||||
var image,
|
||||
steps = [],
|
||||
@@ -89,7 +90,7 @@ ImageSequencer = function ImageSequencer(options) {
|
||||
image.onload = function() {
|
||||
run(image);
|
||||
if (callback) callback(image);
|
||||
document.sequencer_image = image;
|
||||
options.initial_image = image;
|
||||
}
|
||||
image.src = src;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user