Skip to content
This repository has been archived by the owner on May 7, 2024. It is now read-only.

Commit

Permalink
Merge pull request #69 from inovia-team/fix-snpashot-upload
Browse files Browse the repository at this point in the history
Fix snapshot upload
  • Loading branch information
pantsel authored Jun 6, 2017
2 parents 3376dbd + c10b941 commit cac99bd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions assets/js/app/settings/snapshots/snapshots-controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@
var importedSnapshot;

try{
importedSnapshot = JSON.parse($base64.decode($scope.file.data.replace("data:;base64,","")))
importedSnapshot = JSON.parse($base64.decode($scope.file.data.split(",")[1]))
}catch(err){
MessageService.error(err)
}
Expand Down Expand Up @@ -287,4 +287,4 @@
}
])
;
}());
}());

0 comments on commit cac99bd

Please sign in to comment.