[CORL-436] Embed Code (#2398)

* feat: initial implementation

* fix: moved embed configuration to advanced

* feat: added copy button to embed code

* fix: removing unused line
This commit is contained in:
Wyatt Johnson
2019-07-12 22:35:09 +00:00
committed by GitHub
parent bc0b0d0339
commit d312d380ae
15 changed files with 214 additions and 14 deletions
@@ -0,0 +1,5 @@
export default function getLocationOrigin() {
return (
location.origin || `${window.location.protocol}//${window.location.host}`
);
}
+1
View File
@@ -8,3 +8,4 @@ export { default as ensureNoEndSlash } from "./ensureNoEndSlash";
export { default as parseQuery } from "./parseQuery";
export { default as stringifyQuery } from "./stringifyQuery";
export { default as pureMerge } from "./pureMerge";
export { default as getLocationOrigin } from "./getLocationOrigin";