Skip to content

Commit

Permalink
Merge pull request #3 from BrunoBlanes/master
Browse files Browse the repository at this point in the history
Fixes Uncaught ReferenceError: $ is not defined
  • Loading branch information
dzsquared authored Sep 14, 2020
2 parents 08dcf51 + 228dd18 commit 30cd0ee
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
5 changes: 5 additions & 0 deletions fullWidth.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
function setupDocs() {
// add jquery
var jq = document.createElement('script');
jq.src = chrome.runtime.getURL('jquery.js');
(document.head || document.documentElement).appendChild(jq);

// add a script element for the button actions JS
var s = document.createElement('script');
s.src = chrome.runtime.getURL('buttonActions.js');
Expand Down
4 changes: 2 additions & 2 deletions jquery.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions manifest.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "Docs Fullview",
"version": "2.1",
"version": "2.1.1",
"description": "Toggle to View Documentation in Full Width",
"icons": {
"16": "icons/logoIcon16.png",
Expand All @@ -15,6 +15,6 @@
"run_at": "document_end"
}
],
"web_accessible_resources": ["buttonActions.js"],
"web_accessible_resources": [ "jquery.js", "buttonActions.js" ],
"manifest_version": 2
}

0 comments on commit 30cd0ee

Please sign in to comment.