From 9563a528e538a0ef248eb3101ea1d9ca690e06f7 Mon Sep 17 00:00:00 2001 From: unknown Date: Mon, 8 Dec 2014 14:23:43 +0800 Subject: [PATCH] Fixed plugin list delimiter to properly list all plugins on processing project plugins. --- android/hooks/after_plugin_add/com.ludei.webview.plus.js | 2 +- android/hooks/after_plugin_rm/com.ludei.webview.plus.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/android/hooks/after_plugin_add/com.ludei.webview.plus.js b/android/hooks/after_plugin_add/com.ludei.webview.plus.js index fc8a348..9358588 100755 --- a/android/hooks/after_plugin_add/com.ludei.webview.plus.js +++ b/android/hooks/after_plugin_add/com.ludei.webview.plus.js @@ -39,7 +39,7 @@ App.prototype = { if(error) throw new Error(stderr); if(this.ctx.CORDOVA_CUSTOM_VERSION >= "3.5.0-0.1.0"){ var tmp_list = []; - stdout.split("\\n").forEach(function(plugin_info){ + stdout.split("\n").forEach(function(plugin_info){ tmp_list.push(plugin_info.split(" ")[0]); }); stdout = JSON.stringify(tmp_list); diff --git a/android/hooks/after_plugin_rm/com.ludei.webview.plus.js b/android/hooks/after_plugin_rm/com.ludei.webview.plus.js index af96a83..228990c 100755 --- a/android/hooks/after_plugin_rm/com.ludei.webview.plus.js +++ b/android/hooks/after_plugin_rm/com.ludei.webview.plus.js @@ -39,7 +39,7 @@ App.prototype = { if(error) throw new Error(stderr); if(this.ctx.CORDOVA_CUSTOM_VERSION >= "3.5.0-0.1.0"){ var tmp_list = []; - stdout.split("\\n").forEach(function(plugin_info){ + stdout.split("\n").forEach(function(plugin_info){ tmp_list.push(plugin_info.split(" ")[0]); }); stdout = JSON.stringify(tmp_list);