We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
ExclusiveModeAPI
1 parent c06fc8f commit 5a6b235Copy full SHA for 5a6b235
1 file changed
jsHelper/spicetifyWrapper.js
@@ -326,12 +326,14 @@ window.Spicetify = {
326
setTimeout(addMissingPlatformAPIs, 50);
327
return;
328
}
329
+ const os = Spicetify.Platform.operatingSystem;
330
const version = Spicetify.Platform.version.split(".").map((i) => Number.parseInt(i, 10));
331
if (version[0] === 1 && version[1] === 2 && version[2] < 38) return;
332
333
for (const [key, _] of Spicetify.Platform.Registry._map.entries()) {
334
if (typeof key?.description !== "string" || !key?.description.endsWith("API")) continue;
335
const symbolName = key.description;
336
+ if (symbolName === "ExclusiveModeAPI" && os === "Linux") continue;
337
if (Object.hasOwn(Spicetify.Platform, symbolName)) continue;
338
try {
339
const resolvedAPI = Spicetify.Platform.Registry.resolve(key);
0 commit comments