Commit 2d61ec76 authored by frjo's avatar frjo
Browse files

Issue #2155657 by alex.designworks, Koen.Pasman, Andrew211, frjo: Uncaught...

Issue #2155657 by alex.designworks, Koen.Pasman, Andrew211, frjo: Uncaught TypeError: Cannot read property 'mobiledetect' of undefined
parent 705a8163
......@@ -4,7 +4,7 @@
Drupal.behaviors.initColorbox = {
attach: function (context, settings) {
if (!$.isFunction($.colorbox)) {
if (!$.isFunction($.colorbox) || typeof settings.colorbox === 'undefined') {
return;
}
......
Markdown is supported
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