Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

WebGL App working in Chrome but not Firefox

Discussion in 'WebGL' started by Ahmio, May 5, 2015.

  1. Ahmio

    Ahmio

    Joined:
    Mar 16, 2014
    Posts:
    7
    Hi,
    I have run across a wierd error on WebGL. I have compiled an app which works fine in Chrome, but in Firefox I get the error:


    This code works fine on desktop and chrome.

    Relevant code:
    Code (CSharp):
    1.  
    2. // add this to it's module
    3. Module.Get(node.Attributes["module"].Value).levels.Add(this);
    4.  
    5. // load image
    6. string imagePath = Config.imagePath + node.Attributes["image"].Value;
    7. TaskManager.SubmitTask(() => { return LoadImage(imagePath); });
    8.  
    9. // description of level
    10. description = node.Attributes["description"].Value;

    The game can be tested at dev.smartlabsltd.com.
     
  2. liortal

    liortal

    Joined:
    Oct 17, 2012
    Posts:
    3,559
    Well which line exactly is the one with the null reference ?
    Also, where are you loading the config from ?
     
  3. Ahmio

    Ahmio

    Joined:
    Mar 16, 2014
    Posts:
    7