screepers / screeps-multimeter

The most useful tool on your screeps workbench.
MIT License
89 stars 28 forks source link

HTML plugin can not handle function return string #48

Closed HoPGoldy closed 3 years ago

HoPGoldy commented 3 years ago

I often use strings as function return values to avoid output annoying undefined in the console. But I noticed that HTML plugin can only handle strings output by console.log.

As an example, here is a global function that prints info:

global.showLog = () => {
    console.log('<span style="color: green;">Hello, World!</span>')
    return '<span style="color: green;">Hello, World!</span>'
}

The console output is:

Is this a bug or intentionally?