We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 05dc70d commit 6fc76d4Copy full SHA for 6fc76d4
1 file changed
lib/connect-utils.js
@@ -214,20 +214,18 @@ var connectUtils = {
214
*/
215
clientScript: function (options, both) {
216
217
- var prefix = options.getIn(["socket", "clientPath"]);
218
- var script = prefix + "/browser-sync-client.js";
219
- var template = prefix + "/browser-sync-client.%s.js";
220
-
221
- var compiled = template.replace("%s", options.get("version"));
+ var prefix = options.getIn(["socket", "clientPath"]);
+ var script = prefix + "/browser-sync-client.js";
+ var versioned = prefix + "/browser-sync-client.js?v=" + options.get("version");
222
223
if (both) {
224
return {
225
path: script,
226
- versioned: compiled
+ versioned: versioned
227
};
228
}
229
230
- return compiled;
+ return versioned;
231
232
233
0 commit comments