Skip to content
This repository was archived by the owner on Jul 14, 2022. It is now read-only.

Commit a68bc69

Browse files
committed
Replace includes with indexOf
1 parent bb8be4e commit a68bc69

File tree

1 file changed

+1
-1
lines changed
  • app/assets/javascripts/tinymce/plugins/uploadimage

1 file changed

+1
-1
lines changed

app/assets/javascripts/tinymce/plugins/uploadimage/plugin.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@
166166
var target = iframe.getEl();
167167
if(target.document || target.contentDocument) {
168168
var doc = target.contentDocument || target.contentWindow.document;
169-
if(String(doc.contentType).includes("html")) {
169+
if(String(doc.contentType).indexOf("html") > -1) {
170170
handleResponse(doc.getElementsByTagName("body")[0].innerHTML);
171171
} else {
172172
handleResponse(doc.getElementsByTagName("pre")[0].innerHTML);

0 commit comments

Comments
 (0)