mirror of
https://github.com/TeamPiped/Piped.git
synced 2024-08-14 23:57:27 +00:00
no-cors
mode by default.
This commit is contained in:
parent
34304f3662
commit
57d23de975
1 changed files with 3 additions and 0 deletions
|
@ -37,6 +37,9 @@ const mixin = {
|
|||
}
|
||||
}
|
||||
|
||||
var fetchFn = window.fetch;
|
||||
window.fetch = function (url, config) { if (!config) { config = {} } if (!config.mode) { config.mode = 'no-cors' } return fetchFn(url, config) }
|
||||
|
||||
const app = createApp(App)
|
||||
app.use(router)
|
||||
app.mixin(mixin)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue