()
| 183 | } |
| 184 | |
| 185 | waitForSetup () { |
| 186 | return new Promise( resolve => { |
| 187 | if ( this.isSetup ) resolve() |
| 188 | |
| 189 | // Start timer to check for setup |
| 190 | const timer = setInterval( () => { |
| 191 | if ( this.isSetup ) { |
| 192 | clearInterval( timer ) |
| 193 | resolve() |
| 194 | } |
| 195 | }, 50 ) |
| 196 | }) |
| 197 | } |
| 198 | |
| 199 | loadStorkScript () { |
| 200 |