Skip to content

Commit

Permalink
#688 Clean code
Browse files Browse the repository at this point in the history
  • Loading branch information
SelbiEreshova committed Jul 26, 2022
1 parent b95e21e commit be777df
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions app/js/app-utilities.js
Original file line number Diff line number Diff line change
Expand Up @@ -2563,18 +2563,11 @@ appUtilities.launchWithModelFile = function() {
$.ajax({
type: 'get',
url: "/utilities/testURL",
headers: {
'Cache-Control': 'no-transform'
},
data: {url: filepath},
success: async function(data, text, xhr){
success: async function(data){
// here we can get 404 as well, for example, so there are still error cases to handle

console.log("data.response.body",data.response.body.length)
var dataSize = data.response.body.length
var fileSize = xhr.getResponseHeader('Content-Length');
console.log("filesize from content-length",fileSize);

if(dataSize>250000 && (fileExtension === "sbml" || fileExtension === "xml") )
{
chiseInstance.showSpinnerText('paths-byURL-spinner')
Expand Down

0 comments on commit be777df

Please sign in to comment.