mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-06 06:45:03 -04:00
Added a section on bing words if you enable desktop notifications.
This commit is contained in:
parent
84372cef4a
commit
b170fe921e
3 changed files with 19 additions and 2 deletions
|
@ -194,7 +194,16 @@ angular.module('SettingsController', ['matrixService', 'mFileUpload', 'mFileInpu
|
|||
|
||||
/*** Desktop notifications section ***/
|
||||
$scope.settings = {
|
||||
notifications: undefined
|
||||
notifications: undefined,
|
||||
bingWords: matrixService.config().bingWords
|
||||
};
|
||||
|
||||
$scope.saveBingWords = function() {
|
||||
console.log("Saving words: "+JSON.stringify($scope.settings.bingWords));
|
||||
var config = matrixService.config();
|
||||
config.bingWords = $scope.settings.bingWords;
|
||||
matrixService.setConfig(config);
|
||||
matrixService.saveConfig();
|
||||
};
|
||||
|
||||
// If the browser supports it, check the desktop notification state
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue