Commit 388734cd authored by Robert Lyon's avatar Robert Lyon Committed by Gerrit Code Review

Merge "Bug 1757283: Use more generic javascript syntax to help IE"

parents 2991b5ad 0465c54d
......@@ -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
......
Markdown is supported
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