GeezerVison is showing github.com — fix: remove string template from client code · karma-runner/karma@91d5acd
File tree
Expand file treeCollapse file tree
Open diff view settings
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboardExpand all lines: client/karma.js +6-1Lines changed: 6 additions & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -240,7 +240,12 @@ function Karma (updater, socket, iframe, opener, navigator, location, document) |
240 | 240 | } |
241 | 241 | if (returnUrl) { |
242 | 242 | if (!/^https?:\/\//.test(returnUrl)) { |
243 | | - throw new Error(`Security: Navigation to ${returnUrl} was blocked to prevent malicious exploits.`) |
| 243 | + throw new Error( |
| 244 | + 'Security: Navigation to '.concat( |
| 245 | + returnUrl, |
| 246 | + ' was blocked to prevent malicious exploits.' |
| 247 | + ) |
| 248 | + ) |
244 | 249 | } |
245 | 250 | location.href = returnUrl |
246 | 251 | } |
|
Collapse file
Copy file name to clipboardExpand all lines: static/karma.js +6-1Lines changed: 6 additions & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -250,7 +250,12 @@ function Karma (updater, socket, iframe, opener, navigator, location, document) |
250 | 250 | } |
251 | 251 | if (returnUrl) { |
252 | 252 | if (!/^https?:\/\//.test(returnUrl)) { |
253 | | - throw new Error(`Security: Navigation to ${returnUrl} was blocked to prevent malicious exploits.`) |
| 253 | + throw new Error( |
| 254 | + 'Security: Navigation to '.concat( |
| 255 | + returnUrl, |
| 256 | + ' was blocked to prevent malicious exploits.' |
| 257 | + ) |
| 258 | + ) |
254 | 259 | } |
255 | 260 | location.href = returnUrl |
256 | 261 | } |
|