Closed DNin01 closed 2 weeks ago
Given that JSON is already sort of an accepted format for TurboWarp extensions, I don't think using strings with a delimiter is the right thing to do.
Yeah, I agree. We can easily just use a normal Array here.
if you do something like .replace(/[^0-9\-.]/g, " ").split(" ").filter(i => i)
then people can give the comma list or a JSON list or whatever they want and it should just work
I changed .split(",")
to .match(/[\w\-.]+/g)
, which handles inputs like this:
The
navigator.vibrate()
function isn't limited to just buzzing your phone once for a specific amount of time. You can actually use it to play a pattern where the device alternates between vibrating and not vibrating. You can learn more on MDN Web Docs.I added a block to bring this functionality to the vibration extension.
Tested on Edge for Android.