Skip to content
Snippets Groups Projects
Commit 5b3f0f00 authored by Eric Rasmussen's avatar Eric Rasmussen
Browse files

Fix Chrome iOS embed iframe issue

parent d0e829c8
No related branches found
No related tags found
1 merge request!18Fix Chrome iOS embed iframe issue
This commit is part of merge request !18. Comments created here will be created in the context of that merge request.
......@@ -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);
});
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment