Skip to content

Commit

Permalink
Milestone 0.4.0 - Reinstated Instagram window.instgrm.Embeds.process
Browse files Browse the repository at this point in the history
  • Loading branch information
danhumaan committed May 29, 2018
1 parent 11565bd commit 6143c8c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
5 changes: 2 additions & 3 deletions dist/js/modaal.js
Original file line number Diff line number Diff line change
Expand Up @@ -471,15 +471,14 @@
// remove loading class on body
target.removeClass( self.options.loading_class );

window.instgrm.Embeds.process();
/*
// Check if it has loaded once before.
// This is to stop the Embeds.process from throwing and error the first time it's being loaded.
if ( self.private_options.ig_loaded ) {
window.instgrm.Embeds.process();
} else {
// first time it's loaded, let's set a new private option to use next time it's opened.
self.private_options.ig_loaded = true;
}*/
}
}
},
error: function() {
Expand Down
Loading

0 comments on commit 6143c8c

Please sign in to comment.