Greasy Fork is available in English.

議論 » 開発

Setting function to variable

§
投稿日: 2015/05/19

Setting function to variable

The script below use to work but now it doesn't. Can someone tell me why it fails and how I can get it working. Thanks

log.info = console.info;
log.log("TEST");
woxxomMod
§
投稿日: 2015/05/19
log = console.log.bind(console);
log("TEST");

This works if it's what you want to do.

§
投稿日: 2015/05/19

Thank you. Works well.

返信を投稿

返信を投稿するにはログインしてください。