File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -25,12 +25,15 @@ var Client = require('client'),
25
25
/// });
26
26
/// ```
27
27
ZAFClient . init = function ( callback ) {
28
- var params = Utils . queryParameters ( ) ,
28
+ var queryParams = Utils . queryParameters ( ) ,
29
+ hashParams = Utils . queryParameters ( ( document . location . hash || '' ) . slice ( 1 ) ) ,
30
+ origin = queryParams . origin || hashParams . origin ,
31
+ app_guid = queryParams . app_guid || hashParams . app_guid ,
29
32
client ;
30
33
31
- if ( ! params . origin || ! params . app_guid ) { return false ; }
34
+ if ( ! origin || ! app_guid ) { return false ; }
32
35
33
- client = new Client ( { origin : params . origin , appGuid : params . app_guid } ) ;
36
+ client = new Client ( { origin : origin , appGuid : app_guid } ) ;
34
37
35
38
if ( typeof callback === 'function' ) {
36
39
client . on ( 'app.registered' , callback . bind ( client ) ) ;
You can’t perform that action at this time.
0 commit comments