can't make if(device.webgl) work.

  • Hi,

    I added an action on the default krpano startup action, such as:

    Code
    <action name="startup">LittlePlanet(); </action>

    It work. The LittlePlanet() action that I've created is launching correctly in Firefox and Chrome.

    But if I had the following:

    Code
    <action name="startup"> if(device.webgl), setLittlePlanet(); </action>

    Then the action is not launched, in any browser.

    I do that because in safari, the littlePlanet animation is not working correctly, and I want this action not to be launched in safari.

    I also tried "device.safari" instead of "device.webgl". But it also doesn't work.

    Am I typing something wrong ?

  • Oops, I found my own noob mistake, just a syntax error, sorry *rolleyes*. Is it possible to delete a thread ? (like this one..)

    Edited once, last by oli (March 7, 2016 at 5:46 PM).

Participate now!

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