Skip to content
Snippets Groups Projects

Set up libraries building as static files

Merged Igor Markin requested to merge feature-move-js-libs-to-vcl into master
1 file
+ 7
1
Compare changes
  • Side-by-side
  • Inline
@@ -10,7 +10,13 @@ const Penpal = require('penpal').default;
*/
function setupViamAPI(divId, methods, iframeUrl, apiUrl) {
if (!apiUrl) {
return Promise.reject('API Host not specified.');
apiUrl = `${window.location.origin}/api/`;
console.warn(`API host URL not specified. Fall back to ${apiUrl}`); // eslint-disable-line no-console
}
if (!iframeUrl) {
iframeUrl = `${window.location.origin}/vcl/js/iframe`;
console.warn(`Iframe URL not specified. Fall back to ${iframeUrl}`); // eslint-disable-line no-console
}
const connection = Penpal.connectToChild({
Loading