GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

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
Filter options
  • client
    • karma.js
  • static
    • karma.js
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎client/karma.js‎

Copy file name to clipboardExpand all lines: client/karma.js
+6-1Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,12 @@ function Karma (updater, socket, iframe, opener, navigator, location, document)
240240
}
241241
if (returnUrl) {
242242
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+
)
244249
}
245250
location.href = returnUrl
246251
}
Collapse file

‎static/karma.js‎

Copy file name to clipboardExpand all lines: static/karma.js
+6-1Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,12 @@ function Karma (updater, socket, iframe, opener, navigator, location, document)
250250
}
251251
if (returnUrl) {
252252
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+
)
254259
}
255260
location.href = returnUrl
256261
}

0 commit comments

Comments
0 (0)
You are visitor 01402809 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.