js/devtools.js
// commit changes made to resource code
commit changes made to resource code
commit changes made to resource code
function save() {
    if (editor) {
      console.log('saving', editor.getValue());
      res.setContent(editor.getValue(), true, function(status){
        if (status && status.isError) console.error('Could\'t save Resource:', status);
        else console.log('Resource saved!');
      });
    }
  }
function save ( ) { if ( editor ) { console . log ( 'saving' , editor . getValue ( ) ) ; res . setContent ( editor . getValue ( ) , true , function ( status ) { if ( status && status . isError ) console . error ( 'Could\'t save Resource:' , status ) ; else console . log ( 'Resource saved!' ) ; } ) ; } }
commit changes made to resource code
commit changes made to resource code