From b2ee67707b3404d5421ddefc811370323d2d5680 Mon Sep 17 00:00:00 2001 From: David Cormier Date: Sun, 13 Oct 2013 14:57:54 -0400 Subject: [PATCH] plugins: let plugins name their content --- index.html | 4 ++-- js/plugins.js | 4 +++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/index.html b/index.html index 3eff7b4..c9a0301 100644 --- a/index.html +++ b/index.html @@ -124,12 +124,12 @@ $ openssl req -nodes -newkey rsa:2048 -keyout relay.pem -x509 -days 365 -out rel
- +
- +
diff --git a/js/plugins.js b/js/plugins.js index 350a697..78b100e 100644 --- a/js/plugins.js +++ b/js/plugins.js @@ -15,6 +15,7 @@ var Plugin = function(contentForMessage) { return { contentForMessage: contentForMessage, exclusive: false, + name: "additional content" } } @@ -68,7 +69,8 @@ plugins.service('plugins', ['userPlugins', '$sce', function(userPlugins, $sce) if (pluginContent) { var pluginContent = {'visible': visible, 'content': $sce.trustAsHtml(pluginContent), - 'nsfw': nsfw } + 'nsfw': nsfw, + 'name': plugins[i].name } content.push(pluginContent);