https://bugzilla.wikimedia.org/show_bug.cgi?id=67676
Bug ID: 67676
Summary: [WebFonts] Uncaught TypeError: Cannot read property
'replace' of undefined
Product: MediaWiki extensions
Version: master
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: Unprioritized
Component: UniversalLanguageSelector
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected],
[email protected], [email protected],
[email protected], [email protected],
[email protected], [email protected],
[email protected],
[email protected]
Web browser: ---
Mobile Platform: ---
Uncaught TypeError: Cannot read property 'replace' of undefined
Caused by:
overridableFontFamilies = $.map( overridableFontFamilies, function( item ) {
return item.replace( /[\s'"]/g, '' ); } );
item is undefined because overridableFontFamilies contains undefined. It
contains undefined because of:
overridableFontFamilies: [ $( 'h1' ).css( 'font-family' ) ]
This particular page does not have h1 element, so the call returns undefined.
--
You are receiving this mail because:
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l