Skip to content
This repository has been archived by the owner on Jul 8, 2023. It is now read-only.

Commit

Permalink
fix: поддержка https
Browse files Browse the repository at this point in the history
closes #58
  • Loading branch information
standy committed Apr 24, 2018
1 parent d98c59c commit 28aa03a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions source/export/chrome/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"128": "img/128.png"
},
"permissions": [
"http://the-tale.org/game/*",
"https://the-tale.org/game/*",
"unlimitedStorage",
"notifications"
],
Expand All @@ -25,8 +25,8 @@
{
"run_at": "document_end",
"matches": [
"http://the-tale.org/game/",
"http://the-tale.org/game/pvp/"
"https://the-tale.org/game/",
"https://the-tale.org/game/pvp/"
],
"js": ["injector.js"]
}
Expand Down
2 changes: 1 addition & 1 deletion source/js/notifications/Notifications.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export default class Notifications {
}

const maxEnergy = settingsValues.notifyHeroEnergyGreaterValue;
if (settingsValues.notifyHeroEnergy && maxEnergy) {
if (settingsValues.notifyHeroEnergy && maxEnergy && hero.energy) {
const energy = hero.energy.value;
if (energy > maxEnergy) {
notifyMessages.push(`Энергия накопилась: ${energy}`);
Expand Down

0 comments on commit 28aa03a

Please sign in to comment.