Unverified Commit 5052360a authored by Renato Becker's avatar Renato Becker Committed by GitHub

[FIX] Latest version according server requirements (#195)

* Fix the latest version format.

* Fix invalid version.
parent c351e0e4
......@@ -6,7 +6,7 @@ import webpackOverride from './webpackOverride.config';
export default (config, env/* , helpers */) => {
if (env.production) {
config.output.publicPath = '/livechat/1.0/';
config.output.publicPath = '/livechat/1.0.0/';
}
config = webpackOverride(config);
......
......@@ -48,9 +48,9 @@
var h = d.getElementsByTagName(s)[0],
j = d.createElement(s);
j.async = true;
j.src = '/livechat/1.0/rocketchat-livechat.min.js?_=' + Math.random();
j.src = '/livechat/1.0.0/rocketchat-livechat.min.js?_=' + Math.random();
h.parentNode.insertBefore(j, h);
})(window, document, 'script', '/livechat?version=1.0');
})(window, document, 'script', '/livechat?version=1.0.0');
RocketChat(function() {
this.setCustomField('key-test', 'value test');
......
Markdown is supported
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