MCPcopy Create free account
hub / github.com/codecombat/codecombat / populateBrowserData

Method populateBrowserData

app/views/core/ContactModal.js:70–76  ·  view source on GitHub ↗
(context)

Source from the content-addressed store, hash-verified

68 }
69
70 populateBrowserData (context) {
71 if ($.browser) {
72 context.browser = `${$.browser.platform} ${$.browser.name} ${$.browser.versionNumber}`
73 }
74 context.screenSize = `${(typeof screen !== 'undefined' && screen !== null ? screen.width : undefined) != null ? (typeof screen !== 'undefined' && screen !== null ? screen.width : undefined) : $(window).width()} x ${(typeof screen !== 'undefined' && screen !== null ? screen.height : undefined) != null ? (typeof screen !== 'undefined' && screen !== null ? screen.height : undefined) : $(window).height()}`
75 return context.screenshotURL = this.screenshotURL
76 }
77
78 updateScreenshot () {
79 if (!this.screenshotURL) { return }

Callers 1

contactMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected