mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2026-01-04 18:15:58 -05:00
Allow manual editing of browser extension connection keys
This commit is contained in:
parent
d5de042529
commit
287e822e02
9 changed files with 122 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue