mirror of
https://github.com/Rafostar/clapper.git
synced 2025-09-01 00:41:58 +02:00
Do not import GstClapper for remote app
No need to import and initialize whole GStreamer for web application if the only thing needed there is a single enum.
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
const { Gio, GstAudio, GstClapper, Gdk, Gtk } = imports.gi;
|
||||
const { Gio, GstAudio, Gdk, Gtk } = imports.gi;
|
||||
const Debug = imports.src.debug;
|
||||
|
||||
const { debug } = Debug;
|
||||
@@ -48,11 +48,11 @@ function loadCustomCss()
|
||||
);
|
||||
}
|
||||
|
||||
function inhibitForState(state, window)
|
||||
function setAppInhibit(isInhibit, window)
|
||||
{
|
||||
let isInhibited = false;
|
||||
|
||||
if(state === GstClapper.ClapperState.PLAYING) {
|
||||
if(isInhibit) {
|
||||
if(inhibitCookie)
|
||||
return;
|
||||
|
||||
|
Reference in New Issue
Block a user