18 lines
487 B
JavaScript
18 lines
487 B
JavaScript
(function (blocks, element) {
|
||
var el = element.createElement;
|
||
|
||
blocks.registerBlockType("spotify-recent-oauth/recent-track", {
|
||
title: "Spotify Recent Track",
|
||
icon: "format-audio",
|
||
category: "widgets",
|
||
|
||
edit: function () {
|
||
return el("p", {}, "Spotify Recent Track – visas i frontend.");
|
||
},
|
||
|
||
save: function () {
|
||
return null; // Server-side render
|
||
},
|
||
});
|
||
})(window.wp.blocks, window.wp.element);
|