Skip to content

Instantly share code, notes, and snippets.

(function(global) {
'use strict';
if (global.webkitNotifications || typeof Notification == 'undefined') return;
global.webkitNotifications = {
createNotification: createNotification,
PERMISSION_ALLOWED: 0,
PERMISSION_NOT_ALLOWED: 1,
PERMISSION_DENIED: 2,
checkPermission: function() { return permission; },