aboutsummaryrefslogtreecommitdiffstats
path: root/apps/accessibility/src
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2019-01-10 21:39:54 +0100
committerRoeland Jago Douma <roeland@famdouma.nl>2019-01-10 21:39:54 +0100
commit58d168656bb5cc523eedd1f74f46e8e9ed8c9155 (patch)
tree2b49801ef0946d4f9ac967eea908b9198b8197e4 /apps/accessibility/src
parent5756658b03c7a1d02cf0e522be7be018c9f8aa11 (diff)
downloadnextcloud-server-58d168656bb5cc523eedd1f74f46e8e9ed8c9155.tar.gz
nextcloud-server-58d168656bb5cc523eedd1f74f46e8e9ed8c9155.zip
Move to nextcloud-axios
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'apps/accessibility/src')
-rw-r--r--apps/accessibility/src/App.vue8
1 files changed, 2 insertions, 6 deletions
diff --git a/apps/accessibility/src/App.vue b/apps/accessibility/src/App.vue
index 5de1265c2cd..03054af1c8c 100644
--- a/apps/accessibility/src/App.vue
+++ b/apps/accessibility/src/App.vue
@@ -21,7 +21,7 @@
<script>
import preview from './components/itemPreview';
-import axios from 'axios';
+import axios from 'nextcloud-axios';
export default {
name: 'Accessibility',
@@ -52,9 +52,6 @@ export default {
theme: this.serverData.theme,
font: this.serverData.font
};
- },
- tokenHeaders() {
- return { headers: { requesttoken: OC.requestToken } };
}
},
methods: {
@@ -75,8 +72,7 @@ export default {
selectItem(type, id) {
axios.post(
OC.linkToOCS('apps/accessibility/api/v1/config', 2) + type,
- { value: id },
- this.tokenHeaders
+ { value: id }
)
.then(response => {
this.serverData[type] = id;