Skip to content
Snippets Groups Projects
Commit ebe70141 authored by RMidhunSuresh's avatar RMidhunSuresh
Browse files

Move parent files into /parent directory

parent f2072512
No related branches found
No related tags found
No related merge requests found
......@@ -43,7 +43,7 @@
<script>
window.CHATTERBOX_CONFIG_LOCATION = "./config.json";
</script>
<script src="./src/parent.ts" type="module" id="chatterbox-script"></script>
<script src="./src/parent/parent.ts" type="module" id="chatterbox-script"></script>
</body>
</html>
......@@ -32,10 +32,10 @@
border: none;
border-radius: 100%;
cursor: pointer;
background: no-repeat center url('./ui/res/chat-bubbles.svg'), linear-gradient(180deg, #7657F2 0%, #5C56F5 100%);
background: no-repeat center url('../ui/res/chat-bubbles.svg'), linear-gradient(180deg, #7657F2 0%, #5C56F5 100%);
box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.1), 0px 12px 32px -2px rgba(0, 0, 0, 0.2);
}
.start-background-minimized {
background: no-repeat center url("./ui/res/chevron-down-button.svg"), linear-gradient(180deg, #7657F2 0%, #5C56F5 100%);
background: no-repeat center url("../ui/res/chevron-down-button.svg"), linear-gradient(180deg, #7657F2 0%, #5C56F5 100%);
}
......@@ -2,8 +2,7 @@ import "./parent-style.css";
let isIframeLoaded = false;
const parentHostRoot = (document.querySelector("#chatterbox-script") as HTMLScriptElement).src;
const parentHosRootURL = new URL(parentHostRoot);
const hostRoot = `${parentHosRootURL.protocol}${parentHosRootURL.host}`;
const hostRoot = new URL(parentHostRoot).origin;
const sizeCollection = {
"desktop": {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment