mirror of
https://github.com/github/codeql.git
synced 2025-12-17 17:23:36 +01: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.");
|
|
}
|
|
} |