Skip to content

Commit f9aaf7d

Browse files
committed
Use the SdkConfig interface
rather than pulling in config.json directly. json-loader appears to still be necessary due to some horrendous json dependency in the depths of sanitize-html.
1 parent c672919 commit f9aaf7d

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

‎src/components/views/settings/Notifications.js‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ var sdk = require('matrix-react-sdk');
2121
var MatrixClientPeg = require('matrix-react-sdk/lib/MatrixClientPeg');
2222
var UserSettingsStore = require('matrix-react-sdk/lib/UserSettingsStore');
2323
var Modal = require('matrix-react-sdk/lib/Modal');
24-
var configJson = require("../../../../config.json");
24+
var SdkConfig = require("matrix-react-sdk/lib/SdkConfig");
2525

2626
var notifications = require('../../../notifications');
2727

@@ -118,8 +118,8 @@ module.exports = React.createClass({
118118
var emailPusherPromise;
119119
if (event.target.checked) {
120120
var data = {}
121-
if (configJson.brand) {
122-
data['brand'] = configJson.brand;
121+
if (SdkConfig.get().brand) {
122+
data['brand'] = SdkConfig.get().brand;
123123
}
124124
emailPusherPromise = UserSettingsStore.addEmailPusher(address, data);
125125
} else {

0 commit comments

Comments
 (0)