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

Commit

Permalink
Read asset-manifest.json from filesystem, rather than reading from URL
Browse files Browse the repository at this point in the history
  • Loading branch information
richaber committed Apr 2, 2018
1 parent 95e86a4 commit 04c5f89
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 04c5f89

Please sign in to comment.