mirror of
https://github.com/Azure/cosmos-explorer.git
synced 2024-11-25 06:56:38 +00:00
8 lines
266 B
TypeScript
8 lines
266 B
TypeScript
if (window.parent !== window) {
|
|
try {
|
|
(window as any).__REACT_DEVTOOLS_GLOBAL_HOOK__ = (window.parent as any).__REACT_DEVTOOLS_GLOBAL_HOOK__;
|
|
} catch {
|
|
// No-op. We can throw here if the parent is not the same origin (such as in the Azure portal).
|
|
}
|
|
}
|