Mercurial > hg > webaudioevaluationtool
changeset 1465:a5e28606a50e
Core collects navigator information
author | Nicholas Jillings <nickjillings@users.noreply.github.com> |
---|---|
date | Thu, 26 Nov 2015 09:59:22 +0000 |
parents | ffb7f1c1f97c |
children | a00c7be67424 |
files | core.js |
diffstat | 1 files changed, 16 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/core.js Thu Nov 26 09:39:37 2015 +0000 +++ b/core.js Thu Nov 26 09:59:22 2015 +0000 @@ -727,6 +727,7 @@ projectDocument.setAttribute('file-name',url); xmlDoc.appendChild(projectDocument); xmlDoc.appendChild(returnDateNode()); + xmlDoc.appendChild(interfaceContext.returnNavigator()); for (var i=0; i<testState.stateResults.length; i++) { xmlDoc.appendChild(testState.stateResults[i]); @@ -1695,6 +1696,21 @@ } }; + this.returnNavigator = function() + { + var node = document.createElement("navigator"); + var platform = document.createElement("platform"); + platform.textContent = navigator.platform; + var vendor = document.createElement("vendor"); + vendor.textContent = navigator.vendor; + var userAgent = document.createElement("uagent"); + userAgent.textContent = navigator.userAgent; + node.appendChild(platform); + node.appendChild(vendor); + node.appendChild(userAgent); + return node; + }; + this.commentBoxes = []; this.elementCommentBox = function(audioObject) { var element = audioObject.specification;