Skip to content

Instantly share code, notes, and snippets.

Juan Ignacio Vimberg jivimberg

Block or report user

Report or block jivimberg

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@jivimberg
jivimberg / background.js
Last active Aug 29, 2015
OSN Notifications Extension for Chrome
View background.js
var osnURL = "https://osn-fusioncrm.oracle.com/osn/social/api/v1";
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.