Remove artoo logo from console log
I am creating a chrome extension using Artoo. However, I don't want this artoo logo output to console. How can I turn it off? I already have artoo.settings.log.enabled = false.
https://www.dropbox.com/s/o607kbsi0nf32qe/Screenshot%202015-07-11%2022.05.27.png?dl=0
Can you try to set artoo.settings.log.welcome to false (I mean in the bookmarklet configuration, not at runtime in the script because else the setting won't be applied soon enough and the logo will be displayed).
For chrome extension, should I put it in content script? I am not using bookmarklet. Thank you.
If you are creating a chrome extension then yes, you should probably inject artoo along with a content script. You can check this folder to see how the artoo chrome extension works and see whether it can help you.
@Yomguithereal I mean where should I set artoo.settings.log.welcome to false if I am creating a chrome extension?
@Yomguithereal I can't see any use of artoo.settings.log from the folder you pointed to me.
artoo will get its settings from the settings attribute on its attachment node when loaded. Just JSON.stringify those so they can pass as an HTML string attribute. You've got an example of it here.
But I really need to change this to make extensions etc. easier to develop.
In the background.html, this is what I am doing.
<script src="js/libs/artoo.min.js" settings='{"log":{"enabled":false}}'></script>
But I still can see artoo robot image in the background script output.
Can you try?
<script src="js/libs/artoo.min.js" settings='{"log":{"enabled":false, "welcome": false}}'></script>
Thanks. But it doesn't work.
Any update on this issue? Is it possible that you can provide a version without the mascot print?
Ok, I am sorry I did not see that before but you forgot to give the proper artoo_injected_script id to your script:
<script id="artoo_injected_script" src="js/libs/artoo.min.js" settings='{"log":{"enabled":false, "welcome": false}}'></script>
Normally this should work.