try {
const url = new URL(location)
url.searchParams.append('ajax', '1')
url.searchParams.append('filename', this.filename)
const response = await $http.get(url.toString());
if (typeof(response.data) === 'string') {
throw new Error(response.data)
}
//console.log(response.data);
diff = response.data[0];
$scope.$apply(() => {
originalSizeLine = diff.lines.length
if (originalSizeLine > maxSizeLine) {
// console.log('original', diff.lines.length)