Commit ddd9e89caac2ffa7daac872e4096f19955cc69fe

Authored by Goutte
1 parent 54bb1311

Add metadata to SAMP connection.

Showing 1 changed file with 6 additions and 2 deletions   Show diff stats
web/view/home.html.jinja2
@@ -322,7 +322,7 @@ @@ -322,7 +322,7 @@
322 -webkit-filter: grayscale(100%); 322 -webkit-filter: grayscale(100%);
323 -moz-filter: grayscale(100%); 323 -moz-filter: grayscale(100%);
324 -o-filter: grayscale(100%); 324 -o-filter: grayscale(100%);
325 - -ms-filter: grayscale(100%); 325 +{# -ms-filter: grayscale(100%);#}
326 filter: grayscale(100%); 326 filter: grayscale(100%);
327 } 327 }
328 .targets-filters .target.locked { 328 .targets-filters .target.locked {
@@ -804,7 +804,11 @@ jQuery().ready(function($){ @@ -804,7 +804,11 @@ jQuery().ready(function($){
804 }; 804 };
805 805
806 // Update the document about the presence of any SAMP hub every 7 sec. 806 // Update the document about the presence of any SAMP hub every 7 sec.
807 - var connector = new samp.Connector("Sender"); 807 + var connector = new samp.Connector("Sender", {
  808 + "samp.name": "Heliopropa",
  809 + "samp.description.text": "{{ config.meta.description }}",
  810 + "samp.icon.url": "http://heliopropa.irap.omp.eu/static/img/target/earth_128.png",
  811 + });
808 connector.onHubAvailability(onHubAvailability, 7000); 812 connector.onHubAvailability(onHubAvailability, 7000);
809 window.onunload = function () { 813 window.onunload = function () {
810 connector.unregister(); 814 connector.unregister();