Skip to content

Commit

Permalink
minor update
Browse files Browse the repository at this point in the history
  • Loading branch information
tbennun committed Mar 24, 2020
1 parent c475956 commit 7c7d7d9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions diode/webclient/sdfg_utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,13 +72,13 @@ function sdfg_range_elem_to_string(range, settings=null) {
} else {
let endp1 = sdfg_property_to_string(range.end, settings) + ' + 1';
// Try to simplify using math.js
var mathjs = null;
var mathjs = undefined;
try {
mathjs = window.math;
} catch(e) {
try { mathjs = math; } catch(e) {}
}
if (mathjs !== null)
if (mathjs !== undefined)
endp1 = mathjs.simplify(endp1).toString();

preview += sdfg_property_to_string(range.start, settings) + ':' +
Expand Down

0 comments on commit 7c7d7d9

Please sign in to comment.