mirror of
https://github.com/wassname/talk.git
synced 2026-07-14 11:18:50 +08:00
[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:
@@ -0,0 +1,5 @@
|
||||
export default function getLocationOrigin() {
|
||||
return (
|
||||
location.origin || `${window.location.protocol}//${window.location.host}`
|
||||
);
|
||||
}
|
||||
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user