Skip to content

Commit 360629f

Browse files
Merge pull request #10 from WesleyBranton/development
Version 1.6.2
2 parents 424c7ee + f73b1e3 commit 360629f

File tree

4 files changed

+14
-5
lines changed

4 files changed

+14
-5
lines changed

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,11 @@ To develop and test the extension, you need to open the "about:debugging" page i
1818
Further documentation about developing Firefox extensions can be found [here](https://developer.mozilla.org/docs/Mozilla/Add-ons/WebExtensions/Your_first_WebExtension).
1919

2020
## Release Notes
21+
### Version 1.6.2
22+
* **[FIXED]** Issue with options UI appearance
23+
* **[FIXED]** Error when changing settings
24+
* **[FIXED]** Error when installing add-on for the first time
25+
2126
### Version 1.6.1
2227
* **[CHANGE]** Overhauled options UI
2328

firefox/background.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,13 +108,14 @@ function storageChange(changes) {
108108

109109
if (changes.volume) {
110110
chimeVolume = changes.volume.newValue;
111-
audio.volume = chimeVolume;
111+
if (audio) {
112+
audio.volume = chimeVolume;
113+
}
112114
}
113115
}
114116

115117
var chimeName, chimeVolume, audio;
116118
firstLoad();
117-
browser.runtime.onInstalled.addListener(handleInstalled);
118119
browser.alarms.onAlarm.addListener(hourTrigger);
119120
chrome.runtime.onMessage.addListener(listenMessage);
120121
browser.storage.onChanged.addListener(storageChange);

firefox/manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"manifest_version": 2,
33
"name": "Grandfather Fox",
4-
"version": "1.6.1",
4+
"version": "1.6.2",
55
"description": "Turn Firefox into a grandfather clock that plays a tune at the top of each hour!",
66

77
"icons": {

firefox/options/options.html

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,17 @@
66
<html>
77
<head>
88
<meta charset="utf-8">
9-
<link rel="stylesheet" href="../lib/preferences/style.css">
9+
<link rel="stylesheet" href="../lib/new_browser_style.css">
1010
</head>
11-
<body>
11+
<body class="browser-style">
1212
<form name="settings">
1313
<section class="panel-section">
1414
<label>Chime volume (<label id="volumeOutput">100%</label>)</label>
1515
<div>
1616
<input type="range" min="1" max="100" value="100" name="volume" id="chimeVolume">
1717
</div>
1818
</section>
19+
<div class="panel-section-separator"></div>
1920
<section class="panel-section">
2021
<label>Chime sound</label>
2122
<select id="chimeNoise" name="noise">
@@ -26,10 +27,12 @@
2627
<option value="singlebeep">Single Beep</option>
2728
</select>
2829
</section>
30+
<div class="panel-section-separator"></div>
2931
<section class="panel-section">
3032
<label>Preview chime</label>
3133
<button type="button" id="sample" class="button default">Listen</button>
3234
</section>
35+
<div class="panel-section-separator"></div>
3336
<section class="panel-section has-help">
3437
<label>Fix timing</label>
3538
<button type="button" id="reload" class="button secondary">Fix</button>

0 commit comments

Comments
 (0)