G
G
Gimir2020-05-12 03:09:08
JavaScript
Gimir, 2020-05-12 03:09:08

Why doesn't chrome.notifications.create work?

I'm making a chrome extension with Vue. I'm trying to create a notification if, when trying to login, the authorization data does not match. If you create a notification in popup, there are no errors, but the notification does not appear. This is how I create a notification:

chrome.notifications.create('', {
          type: 'basic',
          iconUrl: '../icons/icon_48.png',
          title: 'Request failed!',
          message: errorMessage.detail
        })

I can not find the cause of the problem, everything seems to be correct.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question