-
Notifications
You must be signed in to change notification settings - Fork 1
/
background.js
16 lines (14 loc) · 4.16 KB
/
background.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
chrome.runtime.onMessage.addListener(
function (request, sender, sendResponse) {
if (request.triggerNotification) {
chrome.notifications.create('post-merge-notification', {
type: 'basic',
title: "Merge successfull!",
message: "Merged your PR! Yaay!",
iconUrl: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAJYAAAB9CAMAAAB3XGqRAAAA/1BMVEX///8gHx/0yrGc2vAAAAB8uuasXFEdHBwaGRn3zbNISEiQkJDq6uoFAAD0yK7GxsYAChAuLS3X19fw8PCDg4MUExMWCQAyPkSIxup9rb4nKy75+fnj4+P77uaCwOisrKyYmJigoKCUdmcaExCi4/qW1O67u7tpaWnVq5U8PDylSjz549bLqJPVsZtbW1t2dnbLn4rn9fuFucxRb3u72fFKPTd6Y1e7loL10r3bvrvp2df328oUAADP7Pe/5vU/NjJYSEJoVkyphnW+iYLSramgOii4dm6yaV/JmpXPlILcppG/empbg5MkP0g7S1Jznq6v9v9FXGVVe5RrnsJfiqg3TeFcAAAJ+ElEQVR4nO2ae1viuhbGW5shhbZAoRG11YIFBLfAoCNehou3PY6OBw/j/v6f5SRpWnoF9aTu+cP3GRloUvLrWivJSoggfIq/qo16o62++3a1je+vcuRhsoGmASAqFfPNt5oVQwTkdps/VgGJWDIA/Td+uWn3NQDJzajAncoEIhMCeuMN9zV0gLxbAXcvtn0sYjKx/TpXmm0RyMsbQZs3lqKJYhCsby3LrJJdNwaDwQH+M+p2yfKYrX4QShS1Om+sARJDQqCOG6+06wc4mrE0xEQ/iX2lXakqIHrTgDOVWZDFiEBh0MVIKFaABTEd1FH0slx4ezdeqaoOY23Lmhy/GECLF0KRc8yraBXBq8W7K6ra+jb/Daw/01pVkQcWRLyx4j3xHeLeE4WDWG9/h9ABZ6rIKP9O8R/lS2B9q2sFSryxBMAh5rlPPoLFw1oiMPhSVbs8eiLm4pug9rkYi3BZ6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