Skip to content
This repository was archived by the owner on Aug 2, 2022. It is now read-only.

Commit c9a5b01

Browse files
author
Daniel Cannon
committedMay 8, 2020
Refactor how ACE is loaded and update selectors to support new page structure
1 parent dbe20aa commit c9a5b01

21 files changed

+12490
-1046
lines changed
 

‎.babelrc

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"presets": ["@babel/env"]
3+
}

‎.yo-rc.json

-3
This file was deleted.

‎Gruntfile.js

-330
This file was deleted.

‎app/libs/polyfill.min.js

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎app/manifest.json

+5-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "__MSG_appName__",
3-
"version": "0.0.8",
3+
"version": "0.0.9",
44
"manifest_version": 2,
55
"description": "__MSG_appDescription__",
66
"icons": {
@@ -29,12 +29,14 @@
2929
"bower_components/ace-min-noconflict/ext-themelist.js",
3030
"bower_components/ace-min-noconflict/snippets/golang.js",
3131
"bower_components/jquery/dist/jquery.js",
32-
"scripts/playground.js",
3332
"scripts/contentscript.js"
3433
],
3534
"css": [
3635
"styles/playground.css"
3736
]
3837
}
38+
],
39+
"web_accessible_resources": [
40+
"scripts/val_with_change.js"
3941
]
40-
}
42+
}

‎app/scripts.babel/chromereload.js

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
'use strict';
2+
3+
// Reload client for Chrome Apps & Extensions.
4+
// The reload client has a compatibility with livereload.
5+
// WARNING: only supports reload command.
6+
7+
var LIVERELOAD_HOST = 'localhost:';
8+
var LIVERELOAD_PORT = 35729;
9+
var connection = new WebSocket('ws://' + LIVERELOAD_HOST + LIVERELOAD_PORT + '/livereload');
10+
11+
connection.onerror = function (error) {
12+
console.log('reload connection got error:', error);
13+
};
14+
15+
connection.onmessage = function (e) {
16+
if (e.data) {
17+
var data = JSON.parse(e.data);
18+
if (data && data.command === 'reload') {
19+
chrome.runtime.reload();
20+
}
21+
}
22+
};

0 commit comments

Comments
 (0)
This repository has been archived.