| 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 } |