Use a condition, and check whatever element has the min-width style set
jQuery(function($){
var min_width = parseInt( $('body').css('min-width'), 10 );
if ( min_width > 768 ) {
$("#header").sticky({
className : 'sticky-header' ,
topSpacing : -45
});
}
});