mirror of
https://github.com/g0ldyy/comet.git
synced 2026-01-12 01:16:12 +01:00
feat: save settings on Stremio configure button
This commit is contained in:
@@ -681,11 +681,11 @@
|
||||
function getSettingsFromUrl() {
|
||||
const url = window.location.href;
|
||||
// Try parse settings from the URL
|
||||
if (url.split('/').length < 5) {
|
||||
if (url.split("/").length < 5) {
|
||||
console.log("no previous settings"); return null;
|
||||
}
|
||||
const settingsString = url.split('/')[3];
|
||||
if (typeof settingsString === 'undefined') {
|
||||
const settingsString = url.split("/")[3];
|
||||
if (typeof settingsString === "undefined") {
|
||||
console.log("can't fetch previous settings", settingsString)
|
||||
return null;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user