Commit 6c4bf4dc authored by Jeff Sturek's avatar Jeff Sturek
Browse files

Merge branch 'master' into 'master'

Fix Chrome iOS embed iframe issue

See merge request iim/UNL_Search!18
parents d0e829c8 5b3f0f00
......@@ -26,7 +26,7 @@ function loadDefaultSections($page)
$page->affiliation = '';
}
$localScriptUrl = './js/search.min.js?v=4.1.20';
$localScriptUrl = './js/search.min.js?v=20190116';
if (UNL_Search::$mode === 'debug') {
$pageTemplate = 'Local';
......
......@@ -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);
});
......
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