Rename beef.hardware.cpuType to beef.hardware.getCpuArch

This commit is contained in:
Brendan Coles
2019-02-09 11:37:11 +00:00
parent 3108653c69
commit 47f79ecaa2
2 changed files with 2 additions and 2 deletions

View File

@@ -4028,7 +4028,7 @@ beef.browser = {
var os_version = beef.os.getVersion();
var default_browser = beef.os.getDefaultBrowser();
var hw_name = beef.hardware.getName();
var cpu_type = beef.hardware.cpuType();
var cpu_type = beef.hardware.getCpuType();
var touch_enabled = (beef.hardware.isTouchEnabled()) ? "Yes" : "No";
var browser_platform = (typeof(navigator.platform) != "undefined" && navigator.platform != "") ? navigator.platform : 'Unknown';
var browser_type = JSON.stringify(beef.browser.type(), function (key, value) {

View File

@@ -11,7 +11,7 @@ beef.hardware = {
/*
* @return: {String} CPU type
**/
cpuType: function() {
getCpuType: function() {
var arch = 'UNKNOWN';
// note that actually WOW64 means IE 32bit and Windows 64 bit. we are more interested
// in detecting the OS arch rather than the browser build