Convert scripts to es6
This commit is contained in:
@@ -1,8 +1,5 @@
|
||||
(function($) {
|
||||
// Site title
|
||||
wp.customize('blogname', function(value) {
|
||||
value.bind(function(to) {
|
||||
$('.brand').text(to);
|
||||
});
|
||||
});
|
||||
})(jQuery);
|
||||
import $ from 'jquery';
|
||||
|
||||
wp.customize('blogname', (value) => {
|
||||
value.bind((to) => $('.brand').text(to))
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user