• Resolved Marvin Borisch

    (@marvin-borisch)


    I am getting this following warning/error in my console and tracked it down to your plugin (and a few other ones).

    unreachable code after return statement
    (plugin-fw/assets/js/chosen/chosen.jquery.js)

    and is refering to

    AbstractChosen.browser_is_supported = function() {
          if (window.navigator.appName === "Microsoft Internet Explorer") {
            return document.documentMode >= 8;
          }
          if (/iP(od|hone)/i.test(window.navigator.userAgent)) {
            return false;
          }
          if (/Android/i.test(window.navigator.userAgent)) {
            if (/Mobile/i.test(window.navigator.userAgent)) {
              return false;
            }
          }
          return true;
        };

    starting on line 489

    It’s not doing any harm, but still a warning in the console. May be fixed in future versions or replaced (as it seems to be a vendor/external js)

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author YITHEMES

    (@yithemes)

    Hi,
    thanks, as you can see this is part of an external library (chosen/chosen.jquery.js). Anyway we will do everything possible to solve this warning on future updates.

    Thread Starter Marvin Borisch

    (@marvin-borisch)

    Thank you. ??

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘unreachable code after return statement’ is closed to new replies.