Skip to content

Instantly share code, notes, and snippets.

View freckletonj's full-sized avatar
🎯
Focusing

neurallambda freckletonj

🎯
Focusing
View GitHub Profile
@freckletonj
freckletonj / notifications.cljs
Created March 25, 2016 22:12
ClojureScript Notifications
;; this is very much a gist, and it can be tweaked
;; ;; NOTIFICATIONS ----------
;; if (typeof Notification !== 'undefined') {
;; alert('Please us a modern version of Chrome, Firefox, Opera or Safari.');
;; return;
;; }
;; Notification.requestPermission(function (permission) {
;; if (permission !== 'granted') return;