mirror of
https://github.com/hack-chat/main.git
synced 2024-03-22 13:20:33 +08:00
* console.error() added to a empty catch
block.
* typo fixes
This commit is contained in:
parent
d293cc1236
commit
2f6372b0fd
|
@ -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'));
|
||||
}
|
||||
|
|
|
@ -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
|
||||
};
|
||||
|
|
|
@ -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); }
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue
Block a user