Skip to content

Commit 224828a

Browse files
authored
Refactor logMsg function for consistency
1 parent 9967def commit 224828a

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

Align/1.1.1/Align.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ on('ready', () => {
2222

2323
log(`Align v.${version} ready. Command: !align — calls up chat menu with help button`);
2424

25-
const logMsg = (msg) => sendChat(scriptName, `/w gm <div style="position:relative;left:-20px;width:100%;border:1px solid #111;background:#ddd;color:#111;padding:6px;margin:4px;border-radius:6px;font-size:13px;line-height:1.5;">${msg}</div>`, null, {noarchive:true});
2625

2726

2827

@@ -862,9 +861,7 @@ on('ready', () => {
862861
const GRID_SIZE = 10; // snapping grid for box edges
863862

864863

865-
const logMsg = (msg) => sendChat(SCRIPTNAME, `/w gm <div style ="position:relative;left:-20px; width:100%;border:1px solid #111;background:#ddd;color:#111;padding:6px;margin:4px;border-radius:6px;font-size:13px;line-height:1.5;">${msg}</div>`);
866-
867-
// const logMsg = (msg) => sendChat(SCRIPTNAME, `/w gm ${msg}`);
864+
const logMsg = (msg) => sendChat(SCRIPTNAME, `/w gm <div style="position:relative;left:-20px;width:100%;border:1px solid #111;background:#ddd;color:#111;padding:6px;margin:4px;border-radius:6px;font-size:13px;line-height:1.5;">${msg}</div>`, null, {noarchive:true});
868865

869866
const parseArgs = (content) => {
870867
const args = content.split(/\s+--/).slice(1);

0 commit comments

Comments
 (0)