Forum Discussion

TanIlak's avatar
TanIlak
Contributor
2 years ago
Solved

Calling common function for all the scripts

Hi, I have two scripts Unit1 and Unit2. I have imported Unit2 in to Unit1.  When I try to call function webpagereturn which is in unit2. I am getting the error "Cannot read Property ' webpageretur...
  • pwang's avatar
    pwang
    2 years ago

    Hi  Tanlak,

     

    I just add the common js as new item in js. 

    and use the common js by 

     

    var comomon = require("comomon");

     

    must use (" "), not [""]

     

    it works for me.