I have become a fan of single-file web applications. Now I try to make it installable via an embedded manifest. Ideally I would like
- to have the manifest directly editable (i.e. not base 64 - when using base64 here, the lines can be arbitrarily short)
- not have very long lines as the icon data URI src attributes
<link rel="manifest" href='data:text/javascript,{"name":"my app name",
"short_name":"appshort",
"start_url":"https://some.url/this.html",
"icons":[{"src":"data:image/png;base64,iVBORw0KGg...(a lot more)"
...
The problem that I have is that I can not find a way to break the data:image/png;base64... lines.
Inserting a linebreak inbetween gives a Syntax error at the end of the line (all errors as shown in the DevTools under Application/Manifest).
Putting a \ before a linebreak gives Invalid escape sequence .
Putting \\ before a linebreak gives a Syntax error at the end of the line.
Using a single backtick ` to start and end the data:image/png... (which is a kind of javascript way to say ignore newlines in the string) gives a Syntax error at the start of the string.
I can put \n anywhere inside the long string but of course it will not make the line shorter.
Impossible? Suggestions? Thanks!