Commit 18e5acaa authored by Robert Lyon's avatar Robert Lyon
Browse files

Bug 1757283: Use more generic javascript syntax to help IE



The includes() method not available for IE 11

behatnotneeded

Change-Id: Ice40becaacb391bc7b4f85ebf533f9b049e2a5a2
Signed-off-by: Robert Lyon's avatarRobert Lyon <robertl@catalyst.net.nz>
(cherry picked from commit 0465c54d)
(cherry picked from commit a4b81e7d)
parent ca1d672a
......@@ -79,7 +79,7 @@
swapNodes(oldblock.get()[0], newblock.get()[0]); // using DOM objects, not jQuery objects so we needn't worry about IDs
var embedjs = data.data.javascript;
if (embedjs.includes("AC_Voki_Embed")) {
if (embedjs.indexOf("AC_Voki_Embed") !== -1) {
var paramsstr = embedjs.substring(embedjs.lastIndexOf("(")+1,embedjs.lastIndexOf(")"));
var params = paramsstr.split(',');
if (params.length == 7 ) { // old voki embed code has only 7 parameters
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment