Skip to content

Commit

Permalink
fix(flat-rtc): remove global env (#1489)
Browse files Browse the repository at this point in the history
  • Loading branch information
crimx authored Apr 20, 2022
1 parent ae99c73 commit f743817
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion services/rtc/flat-rtc-agora-electron/preload.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ module.exports.flatRTCAgoraElectronPreload = AGORA_APP_ID => {

const rtcEngine = new AgoraRtcSDK();

if (rtcEngine.initialize(process.env.AGORA_APP_ID) < 0) {
if (rtcEngine.initialize(AGORA_APP_ID) < 0) {
throw new Error("[RTC] The app ID is invalid. Check if it is in the correct format.");
}

Expand Down

0 comments on commit f743817

Please sign in to comment.