Use document.body instead of 'body' as jQuery selector
Change-Id: Ia551b3050ed546de1f9db44dbd332a5b6c108a9f
This commit is contained in:
@@ -121,7 +121,7 @@
|
||||
*/
|
||||
render: function () {
|
||||
this.$parent.$settingsPanel.empty();
|
||||
this.$webfonts = $( 'body' ).data( 'webfonts' );
|
||||
this.$webfonts = $( document.body ).data( 'webfonts' );
|
||||
this.$parent.$settingsPanel.append( this.$template );
|
||||
this.prepareLanguages();
|
||||
this.prepareUIFonts();
|
||||
@@ -551,7 +551,7 @@
|
||||
|
||||
// Allow the webfonts library to finish loading
|
||||
setTimeout( function () {
|
||||
displaySettings.$webfonts = $( 'body' ).data( 'webfonts' );
|
||||
displaySettings.$webfonts = $( document.body ).data( 'webfonts' );
|
||||
|
||||
mw.webfonts.preferences.enable();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user