Skip to content
This repository has been archived by the owner on Oct 12, 2024. It is now read-only.

Commit

Permalink
Replace APP_ID with a string in browser after_prepare hook
Browse files Browse the repository at this point in the history
Fixes jeduan#4
  • Loading branch information
Noah Cooper committed Jan 4, 2021
1 parent 20acb45 commit 81ad366
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/after_prepare.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {}
Expand Down

0 comments on commit 81ad366

Please sign in to comment.