D
D
DenimTornado2015-01-22 17:20:47
Google Chrome
DenimTornado, 2015-01-22 17:20:47

How to pass a specific tab id to an extension in Chorme?

There is an extension in which notifications arrive from backs. When clicking on a notification, we must follow the link from it, or if there is a tab in which the application is open in VK, change the focus to this tab. The problem is the following. The link can be specified by alias, or by id.
That is, maybe - https://vk.com/app99999999, or maybe https://vk.com/my_app_name + the same applications are in other social networks, for them their own links, of course, sorting through all the links is stupid.
The goal is to tell the tab extension the id of open applications + pass the application id. For focusing to work regardless of the url specified in the incoming notification.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
mayorovp, 2015-01-30
@DenimTornado

Приложение может при открытии послать сообщение расширению, тем самым зарегистрировав свою вкладку в нем.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question