Commit 5b3f0f00 authored by Eric Rasmussen's avatar Eric Rasmussen
Browse files

Fix Chrome iOS embed iframe issue

parent d0e829c8
......@@ -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