Slightly obfuscate some eggs
This commit is contained in:
parent
1459ed8814
commit
f029c68f1a
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"name": "fwdekker/death-notifier",
|
||||
"description": "Get notified when a famous person dies.",
|
||||
"version": "0.18.0", "_comment_version": "Also update version in `package.json`!",
|
||||
"version": "0.18.1", "_comment_version": "Also update version in `package.json`!",
|
||||
"type": "project",
|
||||
"license": "MIT",
|
||||
"homepage": "https://git.fwdekker.com/tools/death-notifier",
|
||||
|
|
Binary file not shown.
Binary file not shown.
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "death-notifier",
|
||||
"version": "0.18.0", "_comment_version": "Also update version in `composer.json`!",
|
||||
"version": "0.18.1", "_comment_version": "Also update version in `composer.json`!",
|
||||
"description": "Get notified when a famous person dies.",
|
||||
"author": "Florine W. Dekker",
|
||||
"browser": "dist/bundle.js",
|
||||
|
|
|
@ -49,12 +49,11 @@ function refreshTrackings(): void {
|
|||
if (tracking.deleted) {
|
||||
statusText = "article not found";
|
||||
} else {
|
||||
// TODO: Obfuscate these Easter eggs
|
||||
switch (tracking.name) {
|
||||
case "Adolf Hitler":
|
||||
switch (window.btoa(tracking.name)) {
|
||||
case "QWRvbGYgSGl0bGVy":
|
||||
statusText = "dead 🥳";
|
||||
break;
|
||||
case "Vladimir Putin":
|
||||
case "VmxhZGltaXIgUHV0aW4=":
|
||||
statusText = tracking.status === "alive" ? "alive ☹️" : "dead 🥳";
|
||||
break;
|
||||
default:
|
||||
|
|
Loading…
Reference in New Issue