Skip to content

Commit

Permalink
Cleanup file structure.
Browse files Browse the repository at this point in the history
  • Loading branch information
mscavnicky committed Mar 6, 2016
1 parent 8ea600e commit d7bf34a
Show file tree
Hide file tree
Showing 9 changed files with 12 additions and 9 deletions.
File renamed without changes
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion content.js → js/content.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ function block() {

// Synchronously replace document content with blocking template.
var request = new XMLHttpRequest();
request.open("GET", chrome.extension.getURL('template.html'), false);
request.open("GET", chrome.extension.getURL("index.html"), false);
request.send();

if (request.status === 200) {
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
15 changes: 9 additions & 6 deletions manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,21 +8,24 @@
"permissions": [
"storage"
],
"icons": { "128": "icon.png" },
"icons": { "128": "img/icon.png" },
"web_accessible_resources": [
"template.html"
"index.html"
],
"background": {
"scripts": [
"underscore-1.8.3.min.js",
"waitblock.js",
"background.js"
"js/underscore-1.8.3.min.js",
"js/waitblock.js",
"js/background.js"
]
},
"content_scripts": [
{
"matches": ["<all_urls>"],
"js": ["waitblock.js", "content.js"],
"js": [
"js/waitblock.js",
"js/content.js"
],
"run_at": "document_start"
}
],
Expand Down
4 changes: 2 additions & 2 deletions options.html
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@
</div>
</section>

<script type="text/javascript" src="waitblock.js"></script>
<script type="text/javascript" src="options.js"></script>
<script type="text/javascript" src="js/waitblock.js"></script>
<script type="text/javascript" src="js/options.js"></script>
</body>
</html>

0 comments on commit d7bf34a

Please sign in to comment.