@magic-xpa/engine 4.1200.0-dev4120.148 → 4.1200.0-dev4120.149
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -8174,6 +8174,14 @@ class CommandsProcessorManager {
|
|
8174
8174
|
/// <param name="requestedURL"></param>
|
8175
8175
|
/// <returns></returns>
|
8176
8176
|
static async GetContent(requestedURL, useCache) {
|
8177
|
+
return await (CommandsProcessorManager.GetCommandsProcessor().GetContent(requestedURL, useCache));
|
8178
|
+
}
|
8179
|
+
/// <summary>
|
8180
|
+
/// get the URL content according to the active commands processor
|
8181
|
+
/// </summary>
|
8182
|
+
/// <param name="requestedURL"></param>
|
8183
|
+
/// <returns></returns>
|
8184
|
+
static async GetContentString(requestedURL, useCache) {
|
8177
8185
|
return await (CommandsProcessorManager.GetCommandsProcessor().GetContentAsString(requestedURL, useCache));
|
8178
8186
|
}
|
8179
8187
|
/// <summary>
|
@@ -8328,7 +8336,7 @@ class LanguageData {
|
|
8328
8336
|
if (this._constMessagesUrl != null) {
|
8329
8337
|
try {
|
8330
8338
|
// get the content from the server
|
8331
|
-
msgsInCommentString = await CommandsProcessorManager.
|
8339
|
+
msgsInCommentString = await CommandsProcessorManager.GetContentString(this._constMessagesUrl, true);
|
8332
8340
|
}
|
8333
8341
|
catch (err) {
|
8334
8342
|
Logger.Instance.WriteExceptionToLogWithMsg(NString.Format("Unknown message file: \"{0}\"", this._constMessagesUrl));
|
@@ -8428,8 +8436,9 @@ class LanguageData {
|
|
8428
8436
|
else if (this._mlsFileUrl != null) {
|
8429
8437
|
if (this._mlsFileUrl.startsWith("./"))
|
8430
8438
|
this._mlsFileUrl = NString.Replace(this._mlsFileUrl, './', ClientManager.GetAssetsURL() + '/cache/');
|
8431
|
-
let
|
8432
|
-
if (
|
8439
|
+
let arrayBuffer = await CommandsProcessorManager.GetContent(this._mlsFileUrl, true);
|
8440
|
+
if (arrayBuffer != null && arrayBuffer.byteLength > 0) {
|
8441
|
+
let buffer = Encoding.Unicode.GetString(new Uint8Array(arrayBuffer), 0, arrayBuffer.byteLength);
|
8433
8442
|
let contentLen = buffer.length;
|
8434
8443
|
this._mlsStrings = new Hashtable();
|
8435
8444
|
// read the last line
|
@@ -11466,7 +11475,7 @@ class Environment {
|
|
11466
11475
|
// in which case the current error message will be matched with an error in the xpa server's log file (GeneralErrorLog=)).
|
11467
11476
|
Logger.Instance.WriteErrorToLog(NString.Format("Empty cached file URL: '{0}'", tagAndAttributes.trim()));
|
11468
11477
|
else {
|
11469
|
-
let Content = await CommandsProcessorManager.
|
11478
|
+
let Content = await CommandsProcessorManager.GetContentString(cachedFileUrl, true);
|
11470
11479
|
try {
|
11471
11480
|
switch (tagName) {
|
11472
11481
|
case ConstInterface.MG_TAG_KBDMAP_URL:
|
@@ -39498,7 +39507,7 @@ class CommandsTable {
|
|
39498
39507
|
}
|
39499
39508
|
}
|
39500
39509
|
|
39501
|
-
let CurrentClientVersion = '4.1200.0-dev4120.
|
39510
|
+
let CurrentClientVersion = '4.1200.0-dev4120.149';
|
39502
39511
|
|
39503
39512
|
// @dynamic
|
39504
39513
|
class ClientManager {
|