Skip to content

Instantly share code, notes, and snippets.

View oevans's full-sized avatar

Owen Evans oevans

View GitHub Profile
@oevans
oevans / BannerNotification.js
Last active August 16, 2018 13:26 — forked from ssylvia/BannerNotification.js
Banner Notification
define([
// Import reusable strings as needed (e.g. dojo/i18n!./path/to/template.js)
], function(
// String Object (e.g. ViewerStrings)
) {
'use strict';
var existingNotifications = [];
var isUniqueNotification = function(id) {
if (existingNotifications.indexOf(id) >= 0) {