Project

General

Profile

« Previous | Next » 

Revision 50586

USe a json file to read properties | replace openaire Properties | parameterize menu (use params, community, ) | parameterize search pages (hide community information)

View differences:

addThis.component.ts
27 27
  ngOnInit() {
28 28
    this.sub =  this.route.queryParams.subscribe(data => {
29 29

  
30
      if (typeof document !== 'undefined') {
30
      if (typeof document !== 'undefined' && typeof addthis !== 'undefined') {
31 31
        try{
32 32
          addthis.init();
33 33
          addthis.layers.refresh();
34 34
        }catch (e) {
35
          console.log(e);
35
          console.log("AddThis may didn't load properly");
36 36
        }
37 37
      }
38 38
  });

Also available in: Unified diff