Commit e9eb830f authored by ba yaye-awa's avatar ba yaye-awa
Browse files

change the url of png files to communicate with aladin for example

parent b1aa1ba1
......@@ -2196,7 +2196,7 @@ var SAMPPNGPublishControl = (function (Control) {
var _sendPNGSlice = function(connection) {
console.log("var _sendPNGSlice = function(connection) {: entering");
var baseUrl = window.location.origin;
var pngUrl = baseUrl+"/fits/png/"+_relSlicePNGPath;
var pngUrl = baseUrl+_relSlicePNGPath;
console.log("About to send this message 'load "+pngUrl+"' to the HUB" );
var msg = new samp.Message("script.aladin.send", {"script": "load "+pngUrl});
......@@ -2212,7 +2212,7 @@ var SAMPPNGPublishControl = (function (Control) {
var _sendPNGSummedSlices = function(connection) {
console.log("var _sendPNGSummedSlices = function(connection) {: entering");
var baseUrl = window.location.origin;
var pngUrl = baseUrl+"/fits/png/"+_relSummedSlicesPNGPath;
var pngUrl = baseUrl+_relSummedSlicesPNGPath;
console.log("About to send this message 'load "+pngUrl+"' to the HUB" );
var msg = new samp.Message("script.aladin.send", {"script": "load "+pngUrl});
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment