diff --git a/lib/persona.js b/lib/persona.js index 4fb4c12..be3fdff 100644 --- a/lib/persona.js +++ b/lib/persona.js @@ -159,6 +159,10 @@ $(document).ready(function() { } function setupMobileMenu() { + if (!window.addEventListener) { + return; + } + var slideout = new Slideout({ 'panel': document.getElementById('panel'), 'menu': document.getElementById('menu'),