From 5d7991f9fa748e6cb4158fe440dc3516090af0da Mon Sep 17 00:00:00 2001 From: Ingan121 Date: Sat, 30 Aug 2025 20:44:07 +0900 Subject: [PATCH] Check sessionTypes instead of persistentState when denying, just like the real CDM --- content_script.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/content_script.js b/content_script.js index 6da8e85..5047975 100644 --- a/content_script.js +++ b/content_script.js @@ -298,8 +298,8 @@ _args[0] = "com.ingan121.vineless.invalid"; await _target.apply(_this, _args); // should throw here } - if (!profileConfig.allowPersistence && (origConfig[0].persistentState === "required")) { - console.warn("[Vineless] Denying persistentState: required due to user preference"); + if (!profileConfig.allowPersistence && !origConfig.some(c => !c.sessionTypes || (c.sessionTypes.length === 1 && c.sessionTypes.includes('temporary')))) { + console.warn("[Vineless] Denying persistent-license due to user preference"); _args[0] = "com.ingan121.vineless.invalid"; await _target.apply(_this, _args); // should throw here }