Skip to content
This repository has been archived by the owner on Mar 29, 2022. It is now read-only.

Commit

Permalink
Remove legacy code when disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
dbosen authored Dec 8, 2021
1 parent d0b92ab commit 6ad6421
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions templates/ivw-call.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
}
}
{% if legacy_mode %}
var iam_data = {
"st": responsive_data.st,
"cp": responsive_data.cp,
Expand All @@ -31,7 +32,7 @@
if ((typeof window.iom !== 'undefined') && (typeof window.iom.c === 'function')) {
iom.c(iam_data, 1);
}
{% endif %}
if ((typeof window.IOMm !== 'undefined') && (typeof window.IOMm === 'function')) {
var IOMmConfigureParameter = {
"st": responsive_data.st,
Expand All @@ -40,9 +41,9 @@
"dg": responsive_data.dg,
}
if ("{{ legacy_mode }}" !== "1") {
IOMmConfigureParameter.mh = 5
}
{% if legacy_mode is empty %}
IOMmConfigureParameter.mh = 5
{% endif %}
IOMm('configure', IOMmConfigureParameter);
Expand Down

0 comments on commit 6ad6421

Please sign in to comment.