Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewbrg committed May 10, 2020
1 parent 3e80c5a commit f391520
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 7 deletions.
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "1.0.94",
"version": "1.0.95",
"manifest_version": 2,
"minimum_chrome_version": "51",
"name": "Code Pad Text Editor",
Expand Down
4 changes: 2 additions & 2 deletions src/html/modals/content/rate.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ <h3 class="text-center">Free, From Now Until Forever!</h3>
modify and that part will never change.
</p>
<p class="text-center">
However if you do enjoy my work and find it useful, please consider leaving a small &euro;0.25c donation. It
However if you do enjoy my work and find this software useful, please consider leaving a small donation. It
would be greatly appreciated.
</p>
<p class="text-center">
Expand All @@ -15,7 +15,7 @@ <h3 class="text-center">Free, From Now Until Forever!</h3>
</p>
<p class="text-center"></p>
<p class="text-center">
<a href="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=9N2WMWGKDVS84&source=url"
<a href="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=ARY8RPNC934Y2&source=url"
target="_blank">
<img src="/src/img/paypal-donate-button.png"
alt="Thank You!"
Expand Down
10 changes: 6 additions & 4 deletions src/js/handlers/notifications.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,11 @@ let NotificationsHandler = function () {
let previousVer = version[that.versionKey] || false;

if (!previousVer || currentVer.replace(/[^0-9]/g, '') > previousVer.replace(/[^0-9]/g, '')) {

if (currentVer.replace(/[^0-9]/g, '') === 1095) {
return;
}

chrome.notifications.create(that.versionUpdateId, {
type: 'basic',
iconUrl: '/src/img/codepad.128.png',
Expand All @@ -40,7 +45,6 @@ let NotificationsHandler = function () {
requested = requested[that.requestRateKey] || false;

if (!requested) {

chrome.notifications.create(that.ratingReminderId, {
type: 'basic',
iconUrl: '/src/img/codepad.128.png',
Expand All @@ -52,7 +56,6 @@ let NotificationsHandler = function () {
title: 'Click to give your rating'
}]
}, function () {

if (chrome.runtime.lastError) {
console.info(chrome.runtime.lastError.message);
}
Expand All @@ -61,7 +64,6 @@ let NotificationsHandler = function () {
obj[that.requestRateKey] = true;
chrome.storage.local.set(obj);
});

}
});
}, 3000);
Expand All @@ -87,7 +89,7 @@ let NotificationsHandler = function () {
switch (type) {
case 'danger':
icon = 'fa fa-fw fa-exclamation-triangle';
sound = '/src/sounds/notssif-danger.ogg';
sound = '/src/sounds/notif-danger.ogg';
console.info(message);
break;
case 'warning':
Expand Down

0 comments on commit f391520

Please sign in to comment.