Skip to content

Commit

Permalink
#7 Refactor files
Browse files Browse the repository at this point in the history
  • Loading branch information
kimkha committed Nov 4, 2014
1 parent d8e7c1a commit a7ba179
Show file tree
Hide file tree
Showing 9 changed files with 8 additions and 10 deletions.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
12 changes: 6 additions & 6 deletions src/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,25 +3,25 @@
"version": "0.7",
"manifest_version": 2,
"description": "__MSG_extDescription__",
"icons": { "16": "icon16.png",
"48": "icon48.png",
"128": "icon128.png"
"icons": { "16": "icons/icon16.png",
"48": "icons/icon48.png",
"128": "icons/icon128.png"
},
"browser_action": {
"default_icon": "icon19.png",
"default_icon": "icons/icon19.png",
"default_title": "__MSG_extAction__",
"default_popup": "popup.html"
},
"content_scripts": [{
"js": [ "avim.js" ],
"js": [ "scripts/avim.js" ],
"matches": ["http://*/*", "https://*/*"],
"run_at": "document_idle",
"all_frames": true
}],
"default_locale": "en",
"offline_enabled": true,
"background": {
"scripts": ["background.js"]
"scripts": ["scripts/background.js"]
},
"permissions": [
"tabs", "storage"
Expand Down
4 changes: 2 additions & 2 deletions src/popup.html
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
<button id="demoCopy"><span id="txtDemoCopy">Copy</span></button>
</div>
</div>
<script src="popup.js"></script>
<script src="avim.js"></script>
<script src="scripts/popup.js"></script>
<script src="scripts/avim.js"></script>
</body>
</html>
File renamed without changes.
2 changes: 0 additions & 2 deletions src/background.js → src/scripts/background.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,11 +62,9 @@
var bg = {};

if (prefs.onOff == 1) {
//chrome.browserAction.setIcon({path:"icon19.png"});
txt.text = "on";
bg.color = [0, 255, 0, 255];
} else {
//chrome.browserAction.setIcon({path:"icon19-off.png"});
txt.text = "off";
bg.color = [255, 0, 0, 255];
}
Expand Down
File renamed without changes.

0 comments on commit a7ba179

Please sign in to comment.