general
import { isShowpadWebApp } from '@bbc/front-end-kit/js/showpad/utils/general';
General Showpad utility functions.
isShowpadWebApp()
Returns true when the current page is running inside the Showpad web application (i.e. document.location.host contains 'showpad.biz').
Returns
boolean
Example
import { isShowpadWebApp } from '@bbc/front-end-kit/js/showpad/utils/general';
if (isShowpadWebApp()) {
// running inside Showpad — safe to call Showpad SDK methods
}