Skip to content

Commit e1838c8

Browse files
authored
Use concatenation to build the cdn url for the browser snippet (#1260)
1 parent 6008562 commit e1838c8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/browser/bundles/defaults.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import { version } from '../../defaults.js'
22

33
export const cdnHost = 'cdn.rollbar.com';
4-
export const defaultRollbarJsUrl = `https://${cdnHost}/rollbarjs/refs/tags/v${version}/rollbar.min.js`;
4+
// concatenation over interpolation makes the minified file smaller
5+
export const defaultRollbarJsUrl = 'https://' + cdnHost + '/rollbarjs/refs/tags/v' + version + '/rollbar.min.js';

0 commit comments

Comments
 (0)