mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2026-11-26 11:56:46 -08:00
Allow manual editing of browser extension connection keys
This commit is contained in:
1 parent
d5de042529
commit
287e822e02
9 files changed
+122
-1
No files matched your search
@@ -276,6 +276,12 @@ QJsonObject NativeMessageInstaller::constructFile(SupportedBrowsers browser)
|
||||
for (const QString& origin : ALLOWED_ORIGINS) {
|
||||
arr.append(origin);
|
||||
}
|
||||
#ifdef QT_DEBUG
|
||||
auto customId = browserSettings()->customExtensionId();
|
||||
if (!customId.isEmpty()) {
|
||||
arr.append(QString("chrome-extension://%1/").arg(customId));
|
||||
}
|
||||
#endif
|
||||
script["allowed_origins"] = arr;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user