fixed directive to use toastr.js when file is invalid
Merge pull request #10 from Shangodev/unifyone-863

fixed directive to use toastr.js when file is invalid [ci skip]