dist/devtools.js
function doFeta(msg) {
            if(msg){
              runInPage(window.fetaSource.startStr(),
                function(){
                  btn.update("images/recording.png", "Stop Recording");
                });
            }else{
              runInPage(window.fetaSource.stopStr(),
                function(result){
                   btn.update("images/record.png", "Start Recording");
                   _window.msgFromDevtools("saveFile",{data:result});
                 });
            }
        }
function doFeta(msg) {
            if(msg){
              runInPage(window.fetaSource.startStr(),
                function(){
                  btn.update("images/recording.png", "Stop Recording");
                });
            }else{
              runInPage(window.fetaSource.stopStr(),
                function(result){
                   btn.update("images/record.png", "Start Recording");
                   _window.msgFromDevtools("saveFile",{data:result});
                 });
            }
        }
function doFeta ( msg ) { if ( msg ) { runInPage ( window . fetaSource . startStr ( ) , function ( ) { btn . update ( "images/recording.png" , "Stop Recording" ) ; } ) ; } else { runInPage ( window . fetaSource . stopStr ( ) , function ( result ) { btn . update ( "images/record.png" , "Start Recording" ) ; _window . msgFromDevtools ( "saveFile" , { data : result } ) ; } ) ; } }
we inject feta.start or feta.stop depending on the mode.  we update the panel button as well
we inject feta . start or feta . stop depending on the mode . we update the panel button as well