Fix web to server chat on standalone - make chat.js use config.sendmessage
This commit is contained in:
parent
ac26051fbb
commit
969c3631a8
1 changed files with 1 additions and 1 deletions
|
|
@ -24,7 +24,7 @@ componentconstructors['chat'] = function(dynmap, configuration) {
|
||||||
var data = '{"name":'+JSON.stringify(ip)+',"message":'+JSON.stringify(message)+'}';
|
var data = '{"name":'+JSON.stringify(ip)+',"message":'+JSON.stringify(message)+'}';
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: 'POST',
|
type: 'POST',
|
||||||
url: 'up/sendmessage',
|
url: config.url.sendmessage,
|
||||||
data: data,
|
data: data,
|
||||||
dataType: 'json',
|
dataType: 'json',
|
||||||
success: function(response) {
|
success: function(response) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue