diff --git a/modules/jquery.wikiEditor.js b/modules/jquery.wikiEditor.js index b346ad42..8ffbcec8 100644 --- a/modules/jquery.wikiEditor.js +++ b/modules/jquery.wikiEditor.js @@ -196,6 +196,12 @@ key = fallbackChain[ i ]; if ( icon && hasOwn.call( icon, key ) ) { src = icon[ key ]; + + // Return a data URL immediately + if ( src.substr( 0, 5 ) === 'data:' ) { + return src; + } + // Prepend path if src is not absolute if ( src.substr( 0, 7 ) !== 'http://' && src.substr( 0, 8 ) !== 'https://' && src[ 0 ] !== '/' ) { src = path + src;