Remove global service declarations and change to declarations upon usage. (#761)
* Remove global service declarations and change to declarations upon usage. * Only load cava service if cava is enabled.
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
import AstalMpris from 'gi://AstalMpris?version=0.1';
|
||||
import { mprisService } from '../constants/services';
|
||||
|
||||
const mprisService = AstalMpris.get_default();
|
||||
|
||||
export const getCurrentPlayer = (
|
||||
activePlayer: AstalMpris.Player = mprisService.get_players()[0],
|
||||
|
||||
Reference in New Issue
Block a user