Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Modify TS SEGMENT path #2093

Open
the-poor-gamer-124 opened this issue Dec 31, 2022 · 0 comments
Open

Modify TS SEGMENT path #2093

the-poor-gamer-124 opened this issue Dec 31, 2022 · 0 comments
Labels

Comments

@the-poor-gamer-124
Copy link

What do you want to do with Clappr?
Hello, I am trying to rewrite .ts segment path using js
What have you tried so far?
(function(fetch) {
window.fetch = function(input, init) {
if (varz && typeof input === "string" && input.indexOf('.ts') !== -1) {
// Replace the old domain with the new domain
input = input.replace(/https?://\w+.\w+.lol/, "https://" + domain);
}
return fetch.call(this, input, init);
};
})(window.fetch);

But this approach does not work in iOS browsers!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant