aboutsummaryrefslogtreecommitdiffstats
path: root/packages/instant/src/index.umd.ts
diff options
context:
space:
mode:
authorFrancesco Agosti <francesco.agosti93@gmail.com>2018-11-09 03:19:51 +0800
committerGitHub <noreply@github.com>2018-11-09 03:19:51 +0800
commitb388d5496272d535b5c192a7098f4227bb1fb3f2 (patch)
tree2b1deb57dcddf1c52bb7155836971be52d0b9fa3 /packages/instant/src/index.umd.ts
parentadcfe51190c8ca5cd4d11e49eb7e100c80fbd16c (diff)
parentc27194a35783d966b27deeb1654a077b8c1ba1c8 (diff)
downloaddexon-sol-tools-b388d5496272d535b5c192a7098f4227bb1fb3f2.tar
dexon-sol-tools-b388d5496272d535b5c192a7098f4227bb1fb3f2.tar.gz
dexon-sol-tools-b388d5496272d535b5c192a7098f4227bb1fb3f2.tar.bz2
dexon-sol-tools-b388d5496272d535b5c192a7098f4227bb1fb3f2.tar.lz
dexon-sol-tools-b388d5496272d535b5c192a7098f4227bb1fb3f2.tar.xz
dexon-sol-tools-b388d5496272d535b5c192a7098f4227bb1fb3f2.tar.zst
dexon-sol-tools-b388d5496272d535b5c192a7098f4227bb1fb3f2.zip
Merge pull request #1220 from 0xProject/feature/instant/prevent-css-leakage
[instant] Prevent CSS leakage
Diffstat (limited to 'packages/instant/src/index.umd.ts')
-rw-r--r--packages/instant/src/index.umd.ts3
1 files changed, 2 insertions, 1 deletions
diff --git a/packages/instant/src/index.umd.ts b/packages/instant/src/index.umd.ts
index 59d1e646f..0274db30c 100644
--- a/packages/instant/src/index.umd.ts
+++ b/packages/instant/src/index.umd.ts
@@ -2,7 +2,7 @@ import * as _ from 'lodash';
import * as React from 'react';
import * as ReactDOM from 'react-dom';
-import { DEFAULT_ZERO_EX_CONTAINER_SELECTOR, INJECTED_DIV_ID } from './constants';
+import { DEFAULT_ZERO_EX_CONTAINER_SELECTOR, INJECTED_DIV_CLASS, INJECTED_DIV_ID } from './constants';
import { ZeroExInstantOverlay, ZeroExInstantOverlayProps } from './index';
import { assert } from './util/assert';
@@ -41,6 +41,7 @@ export const render = (props: ZeroExInstantOverlayProps, selector: string = DEFA
const appendTo = appendToIfExists as Element;
const injectedDiv = document.createElement('div');
injectedDiv.setAttribute('id', INJECTED_DIV_ID);
+ injectedDiv.setAttribute('class', INJECTED_DIV_CLASS);
appendTo.appendChild(injectedDiv);
const instantOverlayProps = {
...props,