Skip to content

Commit

Permalink
Merge pull request #74 from appcelerator/timob-16197
Browse files Browse the repository at this point in the history
Fix TIMOB-16197: LiveView: Android device or emulator did not update aft...
  • Loading branch information
Michael Xia committed Feb 5, 2014
2 parents 2bb8efc + 162f66a commit f2f2df2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hook/lvhook.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@ exports.init = function(logger, config, cli) {

var srcFile = data.args[0];
var destFile = data.args[1];

if (join(RESOURCES_DIR, 'app.js') === srcFile || (new RegExp('^' + RESOURCES_DIR + '(\/(android|ipad|ios|iphone))?\/app.js$').test(srcFile))) {
if (join(RESOURCES_DIR, 'app.js') === srcFile ||
(new RegExp('^' + RESOURCES_DIR.replace(/\\/g, '/') + '(\/(android|ipad|ios|iphone))?\/app.js$').test(srcFile.replace(/\\/g, '/')))) {
data.args[0] = join(tempdir(), 'liveview.js');
}
}
Expand Down

0 comments on commit f2f2df2

Please sign in to comment.