Skip to content
This repository has been archived by the owner on Nov 15, 2020. It is now read-only.

Commit

Permalink
Merge pull request #6 from richaber/master
Browse files Browse the repository at this point in the history
Read asset-manifest.json from filesystem, rather than reading from URL
  • Loading branch information
jasonbahl authored Apr 2, 2018
2 parents 95e86a4 + 04c5f89 commit 915fd21
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wp-graphiql.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ public function render_admin_page() {
* @return array|bool|string
*/
public function get_app_manifest() {
$manifest = file_get_contents( plugins_url( 'wp-graphiql/assets/app/build/asset-manifest.json' ) );
$manifest = file_get_contents( dirname( __FILE__ ) . '/assets/app/build/asset-manifest.json' );
$manifest = (array) json_decode( $manifest );
return $manifest;
}
Expand Down

0 comments on commit 915fd21

Please sign in to comment.