diff --git a/public/index.html b/public/index.html
index b1be23cc3..cb7256fba 100644
--- a/public/index.html
+++ b/public/index.html
@@ -255,7 +255,7 @@
bug report or feature request
-
If you encounter a bug, or have a feature request - join the Discord server, send me a message on Reddit, create an issue on GitHub or send me a message using the command line esc.
+
If you encounter a bug, or have a feature request - join the Discord server, send me a message on Reddit or create an issue on GitHub.
credits
diff --git a/public/js/commandline.js b/public/js/commandline.js
index db9bfb6f0..20ad66edf 100644
--- a/public/js/commandline.js
+++ b/public/js/commandline.js
@@ -165,49 +165,10 @@ let commands = {
exec: () => {
window.open("https://discord.gg/yENzqcB")
}
- },
- {
- id: "sendDevMessage",
- display: "Send a message ( bug report / feature request / feedback )...",
- subgroup: true,
- exec: () => {
- currentCommands.push(commandsSendDevMessage);
- showCommandLine();
- }
}
]
};
-let commandsSendDevMessage = {
- title: "Send a message...",
- list: [
- {
- id: "sendBugReport",
- display: "Bug report",
- input: true,
- exec: (txt) => {
- db_addEmailToQueue('bug', txt);
- }
- },
- {
- id: "sendFeatureRequest",
- display: "Feature request",
- input: true,
- exec: (txt) => {
- db_addEmailToQueue('feature', txt);
- }
- },
- {
- id: "sendFeedback",
- display: "Other feedback",
- input: true,
- exec: (txt) => {
- db_addEmailToQueue('feedback', txt);
- }
- }
- ]
-}
-
let commandsDifficulty = {
title: "Change difficulty...",
list: [
diff --git a/public/js/db.js b/public/js/db.js
index 7c0c0d674..b3499dc44 100644
--- a/public/js/db.js
+++ b/public/js/db.js
@@ -71,36 +71,3 @@ async function db_getUserHighestWpm(mode, mode2, punctuation, language, difficul
return retval;
}
-
-function db_addEmailToQueue(type, body) {
-
- let from = 'Annonymous';
- let subject = '';
- if (type == 'bug') {
- subject = 'New Bug Report';
- } else if (type == 'feature') {
- subject = 'New Feature Request';
- } else if (type == 'feedback') {
- subject = 'New Feedback';
- } else {
- showNotification('Error: Unsupported type',3000);
- return;
- }
-
- if (firebase.auth().currentUser != null) {
- from = firebase.auth().currentUser.email + ' (' + firebase.auth().currentUser.uid + ')';
- }
-
- db.collection('mail').add({
- to: "bartnikjack@gmail.com",
- message: {
- subject: subject,
- html: body.replace(/\r\n|\r|\n/g,"
") + "
From: " + from,
- }
- }).then(() => {
- showNotification('Email sent',3000);
- }).catch((e) => {
- showNotification('Error while sending email: ' + e,5000);
- });
-
- }
\ No newline at end of file