Skip to content
Snippets Groups Projects

Fix Chrome iOS embed iframe issue

Merged Eric Rasmussen requested to merge erasmussen2/UNL_Search:master into master
2 files
+ 9
1
Compare changes
  • Side-by-side
  • Inline
Files
2
+ 8
0
@@ -381,6 +381,14 @@ define(['jquery', 'analytics'], function ($, analytics) {
return;
}
// Chrome iOS issues a message on touch that is an object with
// oEvent.data.type = 'org.chromium.contextMenuMessage'.
// We will just ignore anything that isn't a string, which is what is
// expected from the parent window with wdntemplates's embedded search.
if (typeof oEvent.data !== 'string') {
return;
}
q = $.trim(oEvent.data);
passiveQuery(q);
});
Loading