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

Commit

Permalink
Merge pull request #618 from kpi-intelligence/fix/update-client-id
Browse files Browse the repository at this point in the history
Fix #617: CLIENT_ID not updated in after_prepare hook
  • Loading branch information
EddyVerbruggen authored Jul 26, 2019
2 parents d38b831 + 9ef4bc9 commit 82d12c6
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 82d12c6

Please sign in to comment.