mirror of
https://github.com/cryptpad/cryptpad.git
synced 2026-09-14 11:05:41 +05:00
Remove upgradeURL from product
This commit is contained in:
parent
7434fc972b
commit
65d5c08053
@ -53,7 +53,6 @@ define([
|
||||
|
||||
var accounts = Pages.accounts = {
|
||||
donateURL: AppConfig.donateURL || "https://opencollective.com/cryptpad/",
|
||||
upgradeURL: AppConfig.upgradeURL
|
||||
};
|
||||
|
||||
var languageSelector = function () {
|
||||
|
||||
@ -113,15 +113,6 @@ define([
|
||||
} catch (e) {}
|
||||
}
|
||||
|
||||
var ACCOUNTS_URL;
|
||||
try {
|
||||
if (typeof(AppConfig.upgradeURL) === 'string') {
|
||||
ACCOUNTS_URL = new URL(AppConfig.upgradeURL, trimmedUnsafe).origin;
|
||||
}
|
||||
} catch (err) {
|
||||
console.error(err);
|
||||
}
|
||||
|
||||
var debugOrigins = {
|
||||
httpUnsafeOrigin: trimmedUnsafe,
|
||||
httpSafeOrigin: trimmedSafe,
|
||||
@ -1026,8 +1017,7 @@ define([
|
||||
(HTTP_API_URL && HTTP_API_URL !== $outer) ? HTTP_API_URL : undefined,
|
||||
isHTTPS(fileHost)? fileHost: undefined,
|
||||
// support for cryptpad.fr configuration
|
||||
accounts_api,
|
||||
![trimmedUnsafe, trimmedSafe].includes(ACCOUNTS_URL)? ACCOUNTS_URL: undefined,
|
||||
accounts_api
|
||||
],
|
||||
|
||||
'img-src': ["'self'", 'data:', 'blob:', $outer],
|
||||
@ -1066,8 +1056,7 @@ define([
|
||||
API_URL.origin,
|
||||
(HTTP_API_URL && HTTP_API_URL !== $outer) ? HTTP_API_URL : undefined,
|
||||
isHTTPS(fileHost)? fileHost: undefined,
|
||||
accounts_api,
|
||||
![trimmedUnsafe, trimmedSafe].includes(ACCOUNTS_URL)? ACCOUNTS_URL: undefined,
|
||||
accounts_api
|
||||
],
|
||||
'img-src': ["'self'", 'data:', 'blob:', $outer],
|
||||
'media-src': ['blob:'],
|
||||
|
||||
@ -53,7 +53,6 @@ define([
|
||||
var common = window.Cryptpad = {
|
||||
Messages: Messages,
|
||||
donateURL: AppConfig.donateURL || "https://opencollective.com/cryptpad/",
|
||||
upgradeURL: AppConfig.upgradeURL || 'https://accounts.cryptpad.fr/#/?on=' + origin,
|
||||
account: {},
|
||||
};
|
||||
|
||||
|
||||
@ -813,8 +813,7 @@ define([
|
||||
isHistoryVersion: parsed.hashData && parsed.hashData.versionHash,
|
||||
notifications: notifs,
|
||||
accounts: {
|
||||
donateURL: Cryptpad.donateURL,
|
||||
upgradeURL: Cryptpad.upgradeURL
|
||||
donateURL: Cryptpad.donateURL
|
||||
},
|
||||
isNewFile: isNewFile,
|
||||
isDeleted: isDeleted,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user