Detecting NPAPI support in Chrome using javascript

前端 未结 3 1550
悲哀的现实
悲哀的现实 2020-12-11 00:12

As Google Chrome is dropping support for NPAPI post September 2015. Is there any way to detect the NPAPI support in chrome using JavaScript so that Alternative content will

3条回答
  •  伪装坚强ぢ
    2020-12-11 00:41

    There is no javascript api to check NPAPI support, but as workaround I can suggest you to check browser version of Chrome.

    If Chrome version older then 42 than NPAPI support is disabled. Yes, from 42 and before 45 version you can use chrome://flags/#enable-npapi but there is no way to check this flags from JS

    For now I guess it's pretty actual information: https://www.chromium.org/developers/npapi-deprecation?pli=1

提交回复
热议问题