Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/tasks.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRaimund Schlüßler <raimund.schluessler@mailbox.org>2020-04-10 22:43:20 +0300
committerRaimund Schlüßler <raimund.schluessler@mailbox.org>2020-04-10 22:43:20 +0300
commite51c6437c6b789ebe7d9a9844a6dcf6fe38ceefc (patch)
tree7489a7ba90b6c367346d5599f1b0bdb94b67bcb8 /src/main.js
parentb05dd7efc202acea4ceb073e9e4fcb224c7203a9 (diff)
Don't use deprecated globals
Signed-off-by: Raimund Schlüßler <raimund.schluessler@mailbox.org> See https://github.com/nextcloud/documentation/pull/1950
Diffstat (limited to 'src/main.js')
-rw-r--r--src/main.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/main.js b/src/main.js
index 036d95c2..b5c22bdd 100644
--- a/src/main.js
+++ b/src/main.js
@@ -29,6 +29,7 @@ import store from './store/store'
import { sync } from 'vuex-router-sync'
import VTooltip from 'v-tooltip'
import VueClipboard from 'vue-clipboard2'
+import { linkTo } from '@nextcloud/router'
// Disable on production
Vue.config.devtools = true
@@ -39,11 +40,11 @@ Vue.config.performance = true
__webpack_nonce__ = btoa(OC.requestToken)
// Correct the root of the app for chunk loading
-// OC.linkTo matches the apps folders
-// OC.generateUrl ensure the index.php (or not)
+// linkTo matches the apps folders
+// generateUrl ensure the index.php (or not)
// We do not want the index.php since we're loading files
// eslint-disable-next-line
-__webpack_public_path__ = OC.linkTo('tasks', 'js/')
+__webpack_public_path__ = linkTo('tasks', 'js/')
sync(store, router)
@@ -68,7 +69,6 @@ Vue.prototype.n = Vue.prototype.$n
Vue.prototype.$OC = OC
Vue.prototype.$OCA = OCA
Vue.prototype.$appVersion = $appVersion
-Vue.prototype.$toast = OCP.Toast // eslint-disable-line no-undef
OCA.Tasks.$t = Vue.prototype.$t
OCA.Tasks.$n = Vue.prototype.$n