Feature: Widget design update (#426)
This commit is contained in:
parent
cc180b77ce
commit
f7f7a6b9c7
18 changed files with 186 additions and 66 deletions
|
@ -6,17 +6,8 @@
|
|||
|
||||
<script>
|
||||
import { mapActions } from 'vuex';
|
||||
import { setHeader } from './helpers/axios';
|
||||
|
||||
export const IFrameHelper = {
|
||||
isIFrame: () => window.self !== window.top,
|
||||
sendMessage: msg => {
|
||||
window.parent.postMessage(
|
||||
`chatwoot-widget:${JSON.stringify({ ...msg })}`,
|
||||
'*'
|
||||
);
|
||||
},
|
||||
};
|
||||
import { setHeader } from 'widget/helpers/axios';
|
||||
import { IFrameHelper } from 'widget/helpers/utils';
|
||||
|
||||
export default {
|
||||
name: 'App',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue