1
0
mirror of https://github.com/hack-chat/main.git synced 2024-03-22 13:20:33 +08:00

Merge pull request #138 from ArteomBalanuta/version-2-dev

Fixed some typos
This commit is contained in:
marzavec 2021-07-12 08:14:57 -05:00 committed by GitHub
commit 34ae42a02b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 6 deletions

View File

@ -169,7 +169,7 @@ var notifySwitch = document.getElementById("notify-switch")
var notifySetting = localStorageGet("notify-api")
var notifyPermissionExplained = 0; // 1 = granted msg shown, -1 = denied message shown
// Inital request for notifications permission
// Initial request for notifications permission
function RequestNotifyPermission() {
try {
var notifyPromise = Notification.requestPermission();
@ -916,7 +916,7 @@ $('#highlight-selector').onchange = function (e) {
setHighlight(e.target.value);
}
// Load sidebar configaration values from local storage if available
// Load sidebar configuration values from local storage if available
if (localStorageGet('scheme')) {
setScheme(localStorageGet('scheme'));
}

View File

@ -1,6 +1,6 @@
/*
Description: This is a template module that should not be user in a production
enviroment
environment
*/
// you can require() modules here
@ -56,7 +56,7 @@ exports.initHooks = (server) => {
`in`: a hook function registered as `in` will be called before the client
request is passed to the module they are attempting to call. Note: socket
in this context is the client that sent the data
`out`: a hook function registerd as `out` will be called before the data is
`out`: a hook function registered as `out` will be called before the data is
sent to any clients. Note: `socket` in this context is the socket that
will be sent the data.
@ -89,6 +89,6 @@ exports.requiredData = ['echo'];
exports.info = {
name: 'showcase', // actual command name
aliases: ['templateModule'], // optional, an array of other names this module can be executed by
usage: 'showcase {echo}', // used for help output, can be ommited if no parameters are required
usage: 'showcase {echo}', // used for help output, can be omitted if no parameters are required
description: 'Simple command module template & info' // used for help output
};

View File

@ -289,7 +289,7 @@ class MainServer extends WsServer {
if (socket.readyState === SocketReady) {
socket.send(JSON.stringify(outgoingPayload));
}
} catch (e) { /* yolo */ }
} catch (e) { console.error(e); }
}
/**