metowolf / MetingJS

:cake: A powerful plugin connect APlayer and Meting
https://i-meto.com/about/
MIT License
1.18k stars 158 forks source link

`location.search` 传参 #74

Closed Flysky12138 closed 1 year ago

Flysky12138 commented 2 years ago

如题,希望可以通过路由传参。

https://github.com/metowolf/MetingJS/blob/fd5394054c3b28c82a95b799e6c468da0f6f704f/source/Meting.js#L25-L27

之后加入如下代码。

for (const [key, value] of new URLSearchParams(location.search)) {
  config[key] = value
}