Skip to content

Compressed JS timeline-embed.js will not find the correct path  #40

@Metacowboy

Description

@Metacowboy

If your WP JS files are compressed minified, loaded at the end with plugins like auto optimise

timeline-embed.js will fail to find the correct path to load timeline.js and timeline.css

timeline-embed.js
minor change at line 478 could help

if(typeof embed_path == 'undefined') {
// REPLACE WITH YOUR BASEPATH IF YOU WANT OTHERWISE IT WILL TRY AND FIGURE IT OUT
var _tmp_script_path = getEmbedScriptPath("timeline-embed.js");
if(!_tmp_script_path){
var _tmp_script_path = timeline_config.script_path;
}
var embed_path = _tmp_script_path.substr(0,_tmp_script_path.lastIndexOf('js/'));
}

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions