hide console completely

  • hello,

    I have a krpano xml version with all the debug, logkey etc on for dev purposes.

    But I also want to have a clean version where the console never opens or I see any krpano messages

    other than the chrome console itself.

    I set this:


    but I can still see the console popping up and letting me know if a file is missing or a function not loading.

    Reason being, I did a database cache clear (all data comes from my cms db) and although the files are there I can still see krpano console showing with errors.

    Will like to completely disable those messages for now. Is there something I need to add/change on the code above and/or to add or modify

    as well in the tour.xml for a global disable (console not showing at all, including credentials etc)?


    Thanks for your help,


    -Manuel

  • Hi,

    the best would be actually fixing the errors instead of hiding them *wink*

    But if you want to hide them, the showerrors setting is the one to change:

    krpano.com - Documentation - XML Reference

    Do this either in the xml or using the vars or initvars embedding setting:

    krpano.com - Documentation - Embedding into HTML

    E.g.

    Code
    embedpano({
    	xml:"tour.xml",
    	target:"tour",
    	initvars:{ showerrors:false },
    	onready:krpano_onready_callback
    });

    Btw - settings with their default values wouldn't need to be set and I would highly recommend NOT using passQueryParameters=true:

    krpano.com - Documentation - Embedding into HTML


    Instead of hiding the errors, it would be also possible to handle them by setting the error events:

    Best regards,
    Klaus

  • hello!

    yes of course, I didn't mean not to fix errors, I always do but on a dev version, I got a db cache update and some unexpected messages on a clean version (a function that was renamed and couple files krpano says it doesnt find, although when I copy the paths url I actually see them so it is something I need to dig in further)

    will try those updates then, thanks guys

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!