summaryrefslogtreecommitdiffstats
path: root/apps/accessibility/src/App.vue
diff options
context:
space:
mode:
Diffstat (limited to 'apps/accessibility/src/App.vue')
-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;