Skip to content

Commit

Permalink
Change options_page back to options_ui in manifest
Browse files Browse the repository at this point in the history
options_page is apparently deprecated in Firefox
  • Loading branch information
danielhollas committed Dec 9, 2019
1 parent 51e074f commit 37d259d
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
6 changes: 5 additions & 1 deletion manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,17 @@
"activeTab",
"storage"
],
"options_page": "options.html",
"web_accessible_resources": [
"5commastyle.gif"
],
"background": {
"scripts": ["background.js"],
"persistent": true
},
"options_ui": {
"page": "options.html",
"open_in_tab": true,
"browser_style": true
},
"content_scripts": [
{
Expand Down
4 changes: 2 additions & 2 deletions options.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
<title>KhanAcademyDots Math Translations</title></head>
<body>

<h1>KhanAcademyDots plugin for automatic translations of math notation</h1>
<h2>KhanAcademyDots plugin for automatic translations of math notation</h2>

<h2>Please select your language for Khan Academy translations</h2>
<h3>Please select your language</h3>

<select id="locale">
<option value="sq">Albanian</option>
Expand Down
1 change: 1 addition & 0 deletions pack_plugin.sh
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ if [[ $browser = 'chrome' ]];then
grep -v -e gecko -e browser_specific_settings manifest.json > tmp
# More chrome specific things
sed -i 's/"persistent": true/"persistent": false/' tmp
sed -i 's/browser_style/chrome_style/' tmp
mv tmp manifest.json
fi
zip -r $PACKAGE_NAME.zip *
Expand Down

0 comments on commit 37d259d

Please sign in to comment.