mirror of
https://github.com/comatory/fb2iCal
synced 2025-06-05 22:09:25 +02:00
refactor: remove checks for JS features
Since I'm introducing Svelte framework and targeting modern browsers, I think it does not make sense to check for browser features. I can always choose to use polyfills for backwards compatibility. I will make sure the form is still also rendered via HTML and works for non-SPA use.
This commit is contained in:
@ -1,5 +1,3 @@
|
||||
const useStorage = () => Boolean(window.localStorage)
|
||||
|
||||
// NOTE: Generate random IDs: https://stackoverflow.com/a/2117523/3056783
|
||||
const uuidv4 = () => {
|
||||
return ([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g, c =>
|
||||
@ -26,5 +24,4 @@ const parseStartTimeFromiCalString = (text = '') => {
|
||||
export {
|
||||
uuidv4,
|
||||
parseStartTimeFromiCalString,
|
||||
useStorage,
|
||||
}
|
||||
|
Reference in New Issue
Block a user