Skip to content

Commit

Permalink
- Allow for custom thumbnail server/headless client hosts
Browse files Browse the repository at this point in the history
  • Loading branch information
pdille committed Aug 31, 2019
1 parent 43ef83e commit 3df56b4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion js/org/gigapan/timelapse/timelapse.js
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,8 @@ if (!window['$']) {
// TODO: This is probably not working as intended or even fully necessary now
var useTouchFriendlyUI = ( typeof (settings["useTouchFriendlyUI"]) == "undefined") ? false : settings["useTouchFriendlyUI"];
var useThumbnailServer = ( typeof (settings["useThumbnailServer"]) == "undefined") ? true : settings["useThumbnailServer"];
var thumbnailServerHost = settings["thumbnailServerHost"];
var headlessClientHost = settings["headlessClientHost"];
var showSizePicker = settings["showSizePicker"] || false;
var visualizerGeometry = {
width: 250,
Expand Down Expand Up @@ -3583,7 +3585,7 @@ if (!window['$']) {
if (annotatorEnabled)
annotator = new org.gigapan.timelapse.Annotator(thisObj);
if (useThumbnailServer) {
var thumbnailToolOptions = {};
var thumbnailToolOptions = {thumbnailServerHost: thumbnailServerHost, headlessClientHost: headlessClientHost};
thumbnailTool = new ThumbnailTool(thisObj, thumbnailToolOptions);
}
if (changeDetectionEnabled) {
Expand Down
2 changes: 1 addition & 1 deletion libs/change-detect

0 comments on commit 3df56b4

Please sign in to comment.