summaryrefslogtreecommitdiffstats
path: root/browser/src/core/Socket.js
diff options
context:
space:
mode:
authorHenry Castro <hcastro@collabora.com>2022-08-05 09:30:18 -0400
committerGökay ŞATIR <gokaysatir@gmail.com>2022-09-29 10:28:18 +0300
commit9a51d8ec52886ec3249da7185c398acc79038d2c (patch)
treee7c1195bdc866e59cad00fc3915a952df4736c71 /browser/src/core/Socket.js
parentwsd: add remote buy product url (diff)
downloadonline-9a51d8ec52886ec3249da7185c398acc79038d2c.tar.gz
online-9a51d8ec52886ec3249da7185c398acc79038d2c.zip
browser: add util function getProduct
Change-Id: I51be33f5e64c716d22c11ddb1f969e9238c18884 Signed-off-by: Henry Castro <hcastro@collabora.com>
Diffstat (limited to 'browser/src/core/Socket.js')
-rw-r--r--browser/src/core/Socket.js6
1 files changed, 2 insertions, 4 deletions
diff --git a/browser/src/core/Socket.js b/browser/src/core/Socket.js
index c99a4261bb..9ca6a978e9 100644
--- a/browser/src/core/Socket.js
+++ b/browser/src/core/Socket.js
@@ -3,7 +3,7 @@
* L.Socket contains methods for the communication with the server
*/
-/* global app _ vex $ errorMessages Uint8Array brandProductName brandProductFAQURL */
+/* global app _ vex $ errorMessages Uint8Array brandProductName */
app.definitions.Socket = L.Class.extend({
ProtocolVersionNumber: '0.1',
@@ -1085,12 +1085,10 @@ app.definitions.Socket = L.Class.extend({
textMsg = textMsg.replace(/{connections}/g, command.params[1]);
textMsg = textMsg.replace(/{productname}/g, (typeof brandProductName !== 'undefined' ?
brandProductName : 'Collabora Online Development Edition'));
- var brandFAQURL = (typeof brandProductFAQURL !== 'undefined') ?
- brandProductFAQURL : 'https://collaboraonline.github.io/post/faq/';
this._map.fire('infobar',
{
msg: textMsg,
- action: brandFAQURL,
+ action: L.Util.getProduct(),
actionLabel: errorMessages.infoandsupport
});
}