Selaa lähdekoodia

Merge pull request #7 from inderpreet99/fix-config-json-handling

Treat config.json ajax output as JSON instead of string
Rachel Baker 10 vuotta sitten
vanhempi
sitoutus
6c2255d4f6
1 muutettua tiedostoa jossa 2 lisäystä ja 2 poistoa
  1. 2 2
      js/app.js

+ 2 - 2
js/app.js

@@ -1,6 +1,6 @@
   jQuery( document ).ready(function( $ ) {
 
-    $.ajax( { url: 'config.json' } ).done(  function( config ) {
+    $.ajax( { url: 'config.json', dataType: 'json' } ).done(  function( config ) {
 
     var c = config;
 
@@ -470,4 +470,4 @@
           };
    
 
- });
+ });