how to use web component like if web component got error than do this else do this
i am making a app in which i use a html code from website which only works only on a particular network if that network is connected than i want to show main screen otherwise exit the app