mirror of
https://github.com/mdn/webextensions-examples.git
synced 2026-04-17 06:48:37 +02:00
Merge pull request #26 from rpl/tweaks/beastify
cross browser workaround for chrome.tabs.executeScripts and minor style tweaks
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user