File tree Expand file tree Collapse file tree 1 file changed +1
-6
lines changed
packages/browser-destinations/destinations/heap/src Expand file tree Collapse file tree 1 file changed +1
-6
lines changed Original file line number Diff line number Diff line change @@ -105,12 +105,7 @@ export const destination: BrowserDestinationDefinition<Settings, HeapApi> = {
105
105
initScript ( settings . appId , config )
106
106
107
107
if ( isDefined ( settings . hostname ) ) {
108
- try {
109
- await deps . loadScript ( `https://${ settings . hostname } /config/${ settings . appId } /heap_config.js` )
110
- } catch {
111
- // fall back to loading from Heap's CDN if self-hosted script is not found
112
- await deps . loadScript ( `https://cdn.us.heap-api.com/config/${ settings . appId } /heap_config.js` )
113
- }
108
+ await deps . loadScript ( `https://${ settings . hostname } /config/${ settings . appId } /heap_config.js` )
114
109
} else {
115
110
await deps . loadScript ( `https://cdn.us.heap-api.com/config/${ settings . appId } /heap_config.js` )
116
111
}
You can’t perform that action at this time.
0 commit comments