Skip to content

Error: Cannot set property 'defaultOpts' of undefined #297

Open
@Richard87

Description

@Richard87

Hi! Any idea what this is all about, I just noticed it now:

Cannot set property 'defaultOpts' of undefined at outdatedBrowser (outdatedbrowser.js:14)

My initializing code:

function addLoadEvent(func) {
    var oldonload = window.onload;
    if (typeof window.onload !== 'function') {
        window.onload = func;
    } else {
        window.onload = function() {
            if (oldonload) {
                oldonload();
            }
            func();
        }
    }
}
//call plugin function after DOM ready
addLoadEvent(function(){
    outdatedBrowser({
        bgColor: '#f25648',
        color: '#ffffff',
        lowerThan: 'borderImage',
        languagePath: ''
    })
});

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions