| Index: notification.js |
| =================================================================== |
| --- a/notification.js |
| +++ b/notification.js |
| @@ -77,17 +77,17 @@ |
| { |
| let link = event.target; |
| while (link && link !== messageElement && link.localName !== "a") |
| link = link.parentNode; |
| if (!link) |
| return; |
| event.preventDefault(); |
| event.stopPropagation(); |
| - ext.pages.open(link.href); |
| + chrome.tabs.create({url: link.href}); |
|
Sebastian Noack
2017/09/20 18:57:02
I'm all for replacing usage of ext.* wit chrome.*
Manish Jethani
2017/09/21 06:11:16
Actually the goal of this set of changes was to ge
Sebastian Noack
2017/09/21 22:57:16
Sure, but there seems to be much more to do than d
Manish Jethani
2017/09/24 22:37:23
OK, I thought we were going to make all the change
Sebastian Noack
2017/09/25 17:50:51
Well, Wladimir wasn't happy with that approach, an
Manish Jethani
2017/09/26 23:13:26
OK, backed out this change.
I like doing it in se
|
| }); |
| let notificationElement = document.getElementById("notification"); |
| notificationElement.className = notification.type; |
| notificationElement.hidden = false; |
| notificationElement.addEventListener("click", event => |
| { |
| if (event.target.id == "notification-close") |