fixed traitify js post when offline issue