Merge pull request #26 from rpl/tweaks/beastify

cross browser workaround for chrome.tabs.executeScripts and minor style tweaks
This commit is contained in:
wbamberg
2016-01-06 11:18:47 -08:00
2 changed files with 3 additions and 7 deletions

View File

@@ -1,14 +1,10 @@
html, body {
height: 100px;
width: 100px;
margin: 0;
}
.beast {
height: 30%;
width: 90%;
margin: 3% auto;
padding-top: 6%;
padding: 4px;
text-align: center;
font-size: 1.5em;
background-color: #E5F2F2;

View File

@@ -18,9 +18,9 @@ document.addEventListener("click", function(e) {
}
var chosenBeast = e.target.textContent;
chrome.tabs.executeScript(null, {
file: "../content_scripts/beastify.js"
file: "/content_scripts/beastify.js"
});
chrome.tabs.query({active: true, currentWindow: true}, function(tabs) {