简体   繁体   中英

How to hide facebook customer chat plugin on specific pages of my SPA?

We have SPA (single page application, generated nuxtjs project) with facebook customer chat plugin on it.

This plugin is initialized during page refresh and remains on the site after router loads view.

We want to show this plugin only on specific pages such as landing page, support page, payment page and hide on the rest pages.

During initial load the plugin creates iframe with all the magic inside it and this iframe remains during SPA navigation untouched.

The question is - how to properly hide facebook customer chat plugin on specific pages? Destroy iframe? Some undocumented settings? Another magic?

Thanks

小部件初始化后,您可以通过window.FB.CustomerChat.show()window.FB.CustomerChat.hide()方法轻松控制可见性

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM