Skip to content
Snippets Groups Projects
Commit 292a98a6 authored by Neuber, Eugen Ramon's avatar Neuber, Eugen Ramon :speech_balloon: Committed by Reiter, Christoph
Browse files

Revert local function getAssetURL()

parent 7b8eed47
No related branches found
No related tags found
No related merge requests found
import env from './env.js';
export const getAssetURL = (path) => {
const elm = document.getElementById('vpu-library-app-src');
if (!elm)
return path;
const url = elm.src;
// newer browsers only
//var url = import.meta.url;
return new URL(path, url).href;
};
/**
* Parses a link header
*
......
......@@ -2,6 +2,7 @@ import {html, LitElement, css} from 'lit-element';
import * as commonUtils from './utils.js';
import bulmaCSSPath from 'bulma/css/bulma.min.css';
import VPULitElement from './vpu-lit-element.js';
import * as utils from '../../src/utils';
/**
* vpu-button implements a button with Bulma styles and automatic spinner and
......@@ -71,7 +72,7 @@ class Button extends VPULitElement {
}
render() {
const bulmaCSS = commonUtils.getAssetURL(bulmaCSSPath);
const bulmaCSS = utils.getAssetURL(bulmaCSSPath);
return html`
<link rel="stylesheet" href="${bulmaCSS}">
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment