Is there a way for me to access the JavaScript object that is available when I use the browser console in a Vue.js component? I am utilizing a JavaScript library and have added the script in index.html which creates the object in the DOM. However, I am unable to directly access the object in Vue.js.
<head>
<script
id="fsc-api"
src="https://d1f8f9xcsvx3ha.cloudfront.net/sbl/0.8.0/fastspring-builder.min.js"
type="text/javascript"
data-storefront="fastspringexamples.test.onfastspring.com/popup-fastspringexamples">
</script>
</head>
When viewing the browser console window, I can see the object fastspring. However, trying to use this object directly in the Vue.js component results in an error saying "fastspring is not defined". Oddly enough, if I console.log this object from the component, I can see it in the browser console.