Skip to content
Snippets Groups Projects
Commit fda42ebb authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

Do the options thing in the main() function

parent 0be34312
No related branches found
No related tags found
No related merge requests found
...@@ -13,7 +13,6 @@ ...@@ -13,7 +13,6 @@
require("key_defs.js", "KEY_LEFT"); require("key_defs.js", "KEY_LEFT");
var lib = load({}, "meme_lib.js"); var lib = load({}, "meme_lib.js");
var options = {};
function choose(border) function choose(border)
{ {
...@@ -50,6 +49,7 @@ function main(text, options) ...@@ -50,6 +49,7 @@ function main(text, options)
"\x01H\x01W\x016", "\x01H\x01W\x016",
"\x01N\x01K\x017", "\x01N\x01K\x017",
]; ];
if (!options) options = {};
var justify = options.justify || 0; var justify = options.justify || 0;
var border = options.border || 0; var border = options.border || 0;
var color = options.color || 0; var color = options.color || 0;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment