File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ adt -package -storetype pkcs12 -keystore selfCert.p12 SourceDiff.air SourceDiff-app.xml diffCmd.html AIRAliases.js -C ..\lib bootstrap.min.css -C ..\src Diff.js DiffFormatter.js EditSet.js LineDiff.js LineFormatter.js style.css
Original file line number Diff line number Diff line change 11<!DOCTYPE html>
22< html >
33< head >
4- < title > Diff test </ title >
4+ < title > SourceDiff </ title >
55 < link href ="bootstrap.min.css " rel ="stylesheet " type ="text/css ">
66 < link href ="style.css " rel ="stylesheet " type ="text/css ">
77 < script src ="AIRAliases.js " type ="text/javascript "> </ script >
@@ -47,14 +47,14 @@ <h3>Edit</h3>
4747 }
4848
4949 function onInvoke ( event ) {
50- var original = readFile ( event . arguments [ 0 ] ) ;
51- var edit = readFile ( event . arguments [ 1 ] ) ;
50+ var original = readFile ( event . currentDirectory , event . arguments [ 0 ] ) ;
51+ var edit = readFile ( event . currentDirectory , event . arguments [ 1 ] ) ;
5252
5353 doDiff ( original , edit ) ;
5454 }
5555
56- function readFile ( filePath ) {
57- var file = air . File . applicationDirectory . resolvePath ( filePath ) ;
56+ function readFile ( currentDirectory , filePath ) {
57+ var file = currentDirectory . resolvePath ( filePath ) ;
5858 var fileStream = new air . FileStream ( ) ;
5959 fileStream . open ( file , air . FileMode . READ ) ;
6060 var contents = fileStream . readUTFBytes ( fileStream . bytesAvailable ) ;
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments