Commit a4b81e7d 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


Change-Id: Ice40becaacb391bc7b4f85ebf533f9b049e2a5a2
Signed-off-by: Robert Lyon's avatarRobert Lyon <>
(cherry picked from commit 0465c54d)
parent 877e6e4a
......@@ -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 =;
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