Skip to content

Commit f391520

Browse files
committed
Update
1 parent 3e80c5a commit f391520

File tree

3 files changed

+9
-7
lines changed

3 files changed

+9
-7
lines changed

manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"version": "1.0.94",
2+
"version": "1.0.95",
33
"manifest_version": 2,
44
"minimum_chrome_version": "51",
55
"name": "Code Pad Text Editor",

src/html/modals/content/rate.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ <h3 class="text-center">Free, From Now Until Forever!</h3>
66
modify and that part will never change.
77
</p>
88
<p class="text-center">
9-
However if you do enjoy my work and find it useful, please consider leaving a small &euro;0.25c donation. It
9+
However if you do enjoy my work and find this software useful, please consider leaving a small donation. It
1010
would be greatly appreciated.
1111
</p>
1212
<p class="text-center">
@@ -15,7 +15,7 @@ <h3 class="text-center">Free, From Now Until Forever!</h3>
1515
</p>
1616
<p class="text-center"></p>
1717
<p class="text-center">
18-
<a href="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=9N2WMWGKDVS84&source=url"
18+
<a href="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=ARY8RPNC934Y2&source=url"
1919
target="_blank">
2020
<img src="/src/img/paypal-donate-button.png"
2121
alt="Thank You!"

src/js/handlers/notifications.js

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,11 @@ let NotificationsHandler = function () {
1616
let previousVer = version[that.versionKey] || false;
1717

1818
if (!previousVer || currentVer.replace(/[^0-9]/g, '') > previousVer.replace(/[^0-9]/g, '')) {
19+
20+
if (currentVer.replace(/[^0-9]/g, '') === 1095) {
21+
return;
22+
}
23+
1924
chrome.notifications.create(that.versionUpdateId, {
2025
type: 'basic',
2126
iconUrl: '/src/img/codepad.128.png',
@@ -40,7 +45,6 @@ let NotificationsHandler = function () {
4045
requested = requested[that.requestRateKey] || false;
4146

4247
if (!requested) {
43-
4448
chrome.notifications.create(that.ratingReminderId, {
4549
type: 'basic',
4650
iconUrl: '/src/img/codepad.128.png',
@@ -52,7 +56,6 @@ let NotificationsHandler = function () {
5256
title: 'Click to give your rating'
5357
}]
5458
}, function () {
55-
5659
if (chrome.runtime.lastError) {
5760
console.info(chrome.runtime.lastError.message);
5861
}
@@ -61,7 +64,6 @@ let NotificationsHandler = function () {
6164
obj[that.requestRateKey] = true;
6265
chrome.storage.local.set(obj);
6366
});
64-
6567
}
6668
});
6769
}, 3000);
@@ -87,7 +89,7 @@ let NotificationsHandler = function () {
8789
switch (type) {
8890
case 'danger':
8991
icon = 'fa fa-fw fa-exclamation-triangle';
90-
sound = '/src/sounds/notssif-danger.ogg';
92+
sound = '/src/sounds/notif-danger.ogg';
9193
console.info(message);
9294
break;
9395
case 'warning':

0 commit comments

Comments
 (0)