Skip to content
This repository was archived by the owner on Feb 6, 2023. It is now read-only.

Commit 7495adf

Browse files
mitermayerfacebook-github-bot
authored andcommitted
Making gkx overwrittable
Summary: **Context:** We currently have feature flags within our code base that can only be end-to-end tested within our internal environment. This PR enable us to overwrite feature flag outside our internal environment Closes #1673 Reviewed By: flarnie Differential Revision: D7138095 Pulled By: flarnie fbshipit-source-id: 1b9954cd5c2a16d7c9e4ab4cdb0efceb6e67517a
1 parent 04c667c commit 7495adf

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/stubs/gkx.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,8 @@
1414
'use strict';
1515

1616
module.exports = function(name: string) {
17+
if (typeof window !== 'undefined' && window.__DRAFT_GKX) {
18+
return window.__DRAFT_GKX[name];
19+
}
1720
return false;
1821
};

0 commit comments

Comments
 (0)