Check whether user has a Chrome extension installed

前端 未结 16 2414
一向
一向 2020-11-22 08:50

I am in the process of building a Chrome extension, and for the whole thing to work the way I would like it to, I need an external JavaScript script to be able to detect if

16条回答
  •  一向
    一向 (楼主)
    2020-11-22 09:23

    Another possible solution if you own the website is to use inline installation.

    if (chrome.app.isInstalled) {
      // extension is installed.
    }
    

    I know this an old question but this way was introduced in Chrome 15 and so I thought Id list it for anyone only now looking for an answer.

提交回复
热议问题