mirror of
https://github.com/Michatec/wk_wars2x.git
synced 2026-04-01 00:16:27 +02:00
Remove dynamic resource naming
This commit is contained in:
@@ -33,7 +33,6 @@
|
||||
/*------------------------------------------------------------------------------------
|
||||
Variables
|
||||
------------------------------------------------------------------------------------*/
|
||||
var resourceName;
|
||||
var uiEdited = false;
|
||||
|
||||
// All of the audio file names
|
||||
@@ -629,7 +628,7 @@ $.ajaxSetup({
|
||||
|
||||
// This function is used to send data back through to the LUA side
|
||||
function sendData( name, data ) {
|
||||
$.post( "https://" + resourceName + "/" + name, JSON.stringify( data ), function( datab ) {
|
||||
$.post( "https://wk_wars2x/" + name, JSON.stringify( data ), function( datab ) {
|
||||
if ( datab != "ok" ) {
|
||||
console.log( datab );
|
||||
}
|
||||
@@ -1077,9 +1076,6 @@ window.addEventListener( "message", function( event ) {
|
||||
|
||||
switch ( type ) {
|
||||
// System events
|
||||
case "updatePathName":
|
||||
resourceName = item.pathName
|
||||
break;
|
||||
case "loadUiSettings":
|
||||
loadUiSettings( item.data, true );
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user