Skip to content

Instantly share code, notes, and snippets.


Juan Ignacio Vimberg jivimberg

View GitHub Profile
jivimberg / background.js
Last active Aug 29, 2015
OSN Notifications Extension for Chrome
View background.js
var osnURL = "";
var defaultNotificationDuration = 5000;
var loggedUserId;
var previousTabId=-1, previousData=[];
function showNotification(userID, titleTxt, bodyTxt) {
if (window.webkitNotifications) {
console.log("Notifications are supported!");
var notification = window.webkitNotifications.createNotification(
osnURL+"/pictures/"+userID+"/profile", // The image.
You can’t perform that action at this time.