From ddd9e89caac2ffa7daac872e4096f19955cc69fe Mon Sep 17 00:00:00 2001 From: Goutte Date: Tue, 20 Nov 2018 14:06:34 +0100 Subject: [PATCH] Add metadata to SAMP connection. --- web/view/home.html.jinja2 | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/web/view/home.html.jinja2 b/web/view/home.html.jinja2 index 1d5792f..40dc3bc 100755 --- a/web/view/home.html.jinja2 +++ b/web/view/home.html.jinja2 @@ -322,7 +322,7 @@ -webkit-filter: grayscale(100%); -moz-filter: grayscale(100%); -o-filter: grayscale(100%); - -ms-filter: grayscale(100%); +{# -ms-filter: grayscale(100%);#} filter: grayscale(100%); } .targets-filters .target.locked { @@ -804,7 +804,11 @@ jQuery().ready(function($){ }; // Update the document about the presence of any SAMP hub every 7 sec. - var connector = new samp.Connector("Sender"); + var connector = new samp.Connector("Sender", { + "samp.name": "Heliopropa", + "samp.description.text": "{{ config.meta.description }}", + "samp.icon.url": "http://heliopropa.irap.omp.eu/static/img/target/earth_128.png", + }); connector.onHubAvailability(onHubAvailability, 7000); window.onunload = function () { connector.unregister(); -- libgit2 0.21.2