Skip to content
This repository has been archived by the owner on May 30, 2023. It is now read-only.

Commit

Permalink
Fix #617: CLIENT_ID not updated in after_prepare hook
Browse files Browse the repository at this point in the history
  • Loading branch information
François Voron committed Jul 26, 2019
1 parent 0fadb8e commit 9ef4bc9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hooks/browser/after_prepare.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,6 @@ var files = [
for(var i=0; i<files.length; i++) {
try {
var contents = fs.readFileSync(files[i]).toString();
fs.writeFileSync(files[i], contents.replace(/WEB_APPLICATION_CLIENT_ID/g, WEB_APPLICATION_CLIENT_ID));
fs.writeFileSync(files[i], contents.replace(/client_id: "[^"]+"/g, `client_id: "${WEB_APPLICATION_CLIENT_ID}"`));
} catch(err) {}
}

0 comments on commit 9ef4bc9

Please sign in to comment.