chrome-app-api-proxy
Advanced tools
Comparing version 0.0.1 to 0.0.2
@@ -9,2 +9,3 @@ 'use strict'; | ||
chrome.serial.onReceive.addListener(function(info) { | ||
info.data = toHexString(info.data); | ||
port.postMessage({ type: 'serial', info: info }); | ||
@@ -33,2 +34,15 @@ }); | ||
}); | ||
function toHexString(arrayBuffer) { | ||
var string = ''; | ||
var uint8Array = new Uint8Array(arrayBuffer); | ||
for (var i = 0; i < uint8Array.length; i++) { | ||
var hex = uint8Array[i].toString(16); | ||
if (hex.length == 1) { | ||
string += '0'; | ||
} | ||
string += hex; | ||
} | ||
return string; | ||
} | ||
}); |
/* global ChromeApiProxy */ | ||
'use strict'; | ||
var extensionId = 'dacgaojeadgpmpmbfoibmncggacokdjd'; | ||
var extensionId = 'mncdajaedfblonbkmodofckdialkolgk'; | ||
var proxy = new ChromeApiProxy(extensionId); | ||
@@ -6,0 +6,0 @@ |
{ | ||
"name": "chrome-app-api-proxy", | ||
"version": "0.0.1", | ||
"version": "0.0.2", | ||
"homepage": "https://github.com/evanxd/chrome-api-proxy", | ||
@@ -5,0 +5,0 @@ "authors": [ |
@@ -1,2 +0,2 @@ | ||
# Chrome API Proxy | ||
# Chrome App API Proxy | ||
Call Chrome App APIs from a Webpage. |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
5054
144