Skip to content

Commit

Permalink
CS-494 move variable assignment into condition
Browse files Browse the repository at this point in the history
  • Loading branch information
rassokhin-s committed Feb 12, 2021
1 parent 35a8ab0 commit c94388c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion assets/app/app/visualizer/visobjects/recording.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,11 @@ angular.module('a2.visobjects.recording', [
}
};
// set it to the scope
var streamId = data.uri.split('/')[3]
this.tiles.set.forEach((function(tile){
if (!!data.legacy) {
tile.src="/api/project/"+Project.getUrl()+"/recordings/tiles/"+this.id+"/"+tile.i+"/"+tile.j;
} else {
var streamId = data.uri.split('/')[3]
var start = new Date(new Date(data.datetime).valueOf() + Math.round(tile.s * 1000)).toISOString()
var end = new Date(new Date(data.datetime).valueOf() + Math.round((tile.s + tile.ds) * 1000)).toISOString()
tile.src = '/api/ingest/recordings/' + streamId + '_t' + start.replace(/-|:|\./g, '') + '.' + end.replace(/-|:|\./g, '') + '_z95_wdolph_g1_fspec_mtrue_d1023.255.png'
Expand Down

0 comments on commit c94388c

Please sign in to comment.