Commit 1431ff89 authored by pascalverst's avatar pascalverst Committed by chriseth

Extracted application code and created chrome extension manifest.

parent e42c3e74
...@@ -44,3 +44,8 @@ In order to allow compiling contracts using a specific version of solidity, the ...@@ -44,3 +44,8 @@ In order to allow compiling contracts using a specific version of solidity, the
// getting a legacy version // getting a legacy version
var solcV011 = solc.useVersion( 'v0.1.1-2015-08-04-6ff4cd6' ); var solcV011 = solc.useVersion( 'v0.1.1-2015-08-04-6ff4cd6' );
var output = solcV011.compile( "contract t { function g() {} }", 1 ); var output = solcV011.compile( "contract t { function g() {} }", 1 );
#To use it as a chrome extension:
Browse to chrome://extensions/
Make sure 'Developer mode' has been checked. Then click 'Load unpacked extension...' to pop up a file-selection dialog.
This diff is collapsed.
chrome.browserAction.onClicked.addListener(function(tab) {
chrome.tabs.create({'url': chrome.extension.getURL('index.html')}, function(tab) {
// tab opened
});
});
icon.png

699 Bytes

This diff is collapsed.
{
"manifest_version": 2,
"name": "Solidity",
"description": "Realtime compiler and runtime",
"devtools_page": "devtools.html",
"update_url": "https://chriseth.github.io/browser-solidity/",
"version": "1.0",
"manifest_version": 2,
"background": {
"scripts": ["background.js"],
"persistent": true
},
"browser_action": {
"default_icon": "icon.png"
},
"permissions": [
"tabs",
"activeTab",
"https://ajax.googleapis.com/",
"webRequest",
"webRequestBlocking",
"\u003Call_urls>",
"storage"
]
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment