# HG changeset patch # User Nicholas Jillings # Date 1453820079 0 # Node ID 261ae55a3e9ee8ce7df3d96b1bc037272a4055f5 # Parent 632c82c7052a5d12c781fd7e8d6a12ff1a7134ba Feature #1471: now includes the screen dimensions diff -r 632c82c7052a -r 261ae55a3e9e core.js --- a/core.js Tue Jan 26 14:20:43 2016 +0000 +++ b/core.js Tue Jan 26 14:54:39 2016 +0000 @@ -2322,16 +2322,20 @@ this.returnNavigator = function() { - var node = document.createElement("navigator"); - var platform = document.createElement("platform"); + var node = storage.document.createElement("navigator"); + var platform = storage.document.createElement("platform"); platform.textContent = navigator.platform; - var vendor = document.createElement("vendor"); + var vendor = storage.document.createElement("vendor"); vendor.textContent = navigator.vendor; - var userAgent = document.createElement("uagent"); + var userAgent = storage.document.createElement("uagent"); userAgent.textContent = navigator.userAgent; + var screen = storage.document.createElement("window"); + screen.setAttribute('innerWidth',window.innerWidth); + screen.setAttribute('innerHeight',window.innerHeight); node.appendChild(platform); node.appendChild(vendor); node.appendChild(userAgent); + node.appendChild(screen); return node; };