mirror of
https://github.com/github/codeql.git
synced 2026-03-29 11:48:16 +02:00
12 lines
172 B
JavaScript
12 lines
172 B
JavaScript
function controller(msg) {
|
|
switch (msg) {
|
|
case 'start':
|
|
start();
|
|
break;
|
|
case 'start':
|
|
stop();
|
|
break;
|
|
default:
|
|
throw new Error("Message not understood.");
|
|
}
|
|
} |