chore: Remove unused method scriptGenerator (#4671)
This commit is contained in:
parent
9ed1f5d96b
commit
9cec091716
2 changed files with 0 additions and 29 deletions
|
@ -1,25 +0,0 @@
|
|||
export const createMessengerScript = pageId => `
|
||||
<script>
|
||||
window.fbAsyncInit = function() {
|
||||
FB.init({
|
||||
appId: "${window.chatwootConfig.fbAppId}",
|
||||
xfbml: true,
|
||||
version: "${window.chatwootConfig.fbApiVersion}"
|
||||
});
|
||||
};
|
||||
(function(d, s, id){
|
||||
var js, fjs = d.getElementsByTagName(s)[0];
|
||||
if (d.getElementById(id)) { return; }
|
||||
js = d.createElement(s); js.id = id;
|
||||
js.src = "//connect.facebook.net/en_US/sdk.js";
|
||||
fjs.parentNode.insertBefore(js, fjs);
|
||||
}(document, 'script', 'facebook-jssdk'));
|
||||
|
||||
</script>
|
||||
<div class="fb-messengermessageus"
|
||||
messenger_app_id="${window.chatwootConfig.fbAppId}"
|
||||
page_id="${pageId}"
|
||||
color="blue"
|
||||
size="standard" >
|
||||
</div>
|
||||
`;
|
|
@ -436,7 +436,6 @@
|
|||
|
||||
<script>
|
||||
import { mapGetters } from 'vuex';
|
||||
import { createMessengerScript } from 'dashboard/helper/scriptGenerator';
|
||||
import { required } from 'vuelidate/lib/validators';
|
||||
import { shouldBeUrl } from 'shared/helpers/Validators';
|
||||
import configMixin from 'shared/mixins/configMixin';
|
||||
|
@ -568,9 +567,6 @@ export default {
|
|||
}
|
||||
return this.inbox.name;
|
||||
},
|
||||
messengerScript() {
|
||||
return createMessengerScript(this.inbox.page_id);
|
||||
},
|
||||
inboxNameLabel() {
|
||||
if (this.isAWebWidgetInbox) {
|
||||
return this.$t('INBOX_MGMT.ADD.WEBSITE_NAME.LABEL');
|
||||
|
|
Loading…
Reference in a new issue