mirror of
https://github.com/th-ch/youtube-music.git
synced 2026-01-10 18:21:47 +00:00
chore: fix the example plugins in the README
This commit is contained in:
@ -290,9 +290,9 @@ import style from './style.css?inline'; // import style as inline
|
|||||||
|
|
||||||
import { createPlugin } from '@/utils';
|
import { createPlugin } from '@/utils';
|
||||||
|
|
||||||
const builder = createPlugin({
|
export default createPlugin({
|
||||||
name: 'Plugin Label',
|
name: 'Plugin Label',
|
||||||
restartNeeded: true, // if value is true, ytmusic show restart dialog
|
restartNeeded: true, // if value is true, ytmusic will show a restart dialog
|
||||||
config: {
|
config: {
|
||||||
enabled: false,
|
enabled: false,
|
||||||
}, // your custom config
|
}, // your custom config
|
||||||
@ -306,9 +306,9 @@ const builder = createPlugin({
|
|||||||
```typescript
|
```typescript
|
||||||
import { createPlugin } from '@/utils';
|
import { createPlugin } from '@/utils';
|
||||||
|
|
||||||
const builder = createPlugin({
|
export default createPlugin({
|
||||||
name: 'Plugin Label',
|
name: 'Plugin Label',
|
||||||
restartNeeded: true, // if value is true, ytmusic show restart dialog
|
restartNeeded: true, // if value is true, ytmusic will show the restart dialog
|
||||||
config: {
|
config: {
|
||||||
enabled: false,
|
enabled: false,
|
||||||
}, // your custom config
|
}, // your custom config
|
||||||
|
|||||||
Reference in New Issue
Block a user