From 81ad3660f474a058e77cdb03415cc4a9e588831d Mon Sep 17 00:00:00 2001 From: Noah Cooper Date: Mon, 4 Jan 2021 13:29:49 -0500 Subject: [PATCH] Replace APP_ID with a string in browser after_prepare hook Fixes #4 --- scripts/after_prepare.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/after_prepare.js b/scripts/after_prepare.js index 35bd1ca4b..0c78c0f0b 100755 --- a/scripts/after_prepare.js +++ b/scripts/after_prepare.js @@ -57,7 +57,7 @@ var files = [ for(var i in files) { try { var contents = fs.readFileSync(files[i]).toString() - contents = contents.replace(/APP_ID/g, APP_ID) + contents = contents.replace(/APP_ID/g, "'" + APP_ID + "'") contents = contents.replace(/FACEBOOK_BROWSER_SDK_VERSION/g, "'" + FACEBOOK_BROWSER_SDK_VERSION + "'") fs.writeFileSync(files[i], contents) } catch(err) {}