function createCSSElem()

in src/windows/NotificationProxy.js [30:46]


function createCSSElem (fileName) {
    var elemId = fileName.substr(0, fileName.lastIndexOf('.')) + '-plugin-style';
    // If the CSS element exists, don't recreate it.
    if (document.getElementById(elemId)) {
        return false;
    }

    // Create CSS and append it to DOM.
    var $elem = document.createElement('link');
    $elem.id = elemId;
    $elem.rel = 'stylesheet';
    $elem.type = 'text/css';
    $elem.href = urlutil.makeAbsolute('/www/css/' + fileName);

    document.head.appendChild($elem);
    return true;
}