Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/webtorrent/webtorrent.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/chrome
diff options
context:
space:
mode:
authorFeross Aboukhadijeh <feross@feross.org>2014-01-19 03:39:04 +0400
committerFeross Aboukhadijeh <feross@feross.org>2014-01-19 03:42:19 +0400
commit755f9e37d89bca3e5331cdfa290c5164474843e4 (patch)
treeb43e005d4457d163749372880f98e801a3df392a /chrome
parentca900c89573c5492ed670501f245b3803b0cdede (diff)
Revert "move chrome app to `webtorrent-chrome` repo"
This reverts commit 782cd3f57ad15ea19d210846a2c884f62d080356.
Diffstat (limited to 'chrome')
-rw-r--r--chrome/background.js8
-rw-r--r--chrome/calculator-128.pngbin0 -> 16537 bytes
-rw-r--r--chrome/calculator-16.pngbin0 -> 1049 bytes
-rw-r--r--chrome/manifest.json30
-rw-r--r--chrome/window.html9
5 files changed, 47 insertions, 0 deletions
diff --git a/chrome/background.js b/chrome/background.js
new file mode 100644
index 0000000..055203a
--- /dev/null
+++ b/chrome/background.js
@@ -0,0 +1,8 @@
+chrome.app.runtime.onLaunched.addListener(function() {
+ chrome.app.window.create('window.html', {
+ 'bounds': {
+ 'width': 400,
+ 'height': 500
+ }
+ });
+}); \ No newline at end of file
diff --git a/chrome/calculator-128.png b/chrome/calculator-128.png
new file mode 100644
index 0000000..85963f3
--- /dev/null
+++ b/chrome/calculator-128.png
Binary files differ
diff --git a/chrome/calculator-16.png b/chrome/calculator-16.png
new file mode 100644
index 0000000..0d9135e
--- /dev/null
+++ b/chrome/calculator-16.png
Binary files differ
diff --git a/chrome/manifest.json b/chrome/manifest.json
new file mode 100644
index 0000000..ef5e481
--- /dev/null
+++ b/chrome/manifest.json
@@ -0,0 +1,30 @@
+{
+ "manifest_version": 2,
+
+ "name": "Hello World!",
+ "description": "My first Chrome App.",
+ "version": "0.1.0",
+
+ "app": {
+ "background": {
+ "scripts": ["background.js"]
+ }
+ },
+
+ "permissions": [
+ {
+ "socket": [
+ "tcp-connect:*:*",
+ "tcp-listen::*",
+ "udp-send-to::*",
+ "udp-bind::*"
+ ]
+ },
+ "storage",
+ "unlimitedStorage",
+ "fileSystem",
+ "http://*/*"
+ ],
+
+ "icons": { "16": "calculator-16.png", "128": "calculator-128.png" }
+} \ No newline at end of file
diff --git a/chrome/window.html b/chrome/window.html
new file mode 100644
index 0000000..44339ee
--- /dev/null
+++ b/chrome/window.html
@@ -0,0 +1,9 @@
+<!DOCTYPE html>
+<html>
+ <head>
+ </head>
+ <body>
+ <div id="console"></div>
+ <script src='bundle.js'></script>
+ </body>
+</html> \ No newline at end of file