javascript port: modify index.html

22 views
Skip to first unread message

wng.m...@gmail.com

unread,
Dec 19, 2016, 12:15:55 PM12/19/16
to CodenameOne Discussions
Hi

I had an issue running the javascript version on chrome where the icon on the windows task bar became blurry. So I added this line in the index.html
<link rel="icon" type="image/x-icon" href="favicon.ico" sizes="32x32" />

Is there a way to include this line everytime I generate a new build?

Thanks

Steve Hannah

unread,
Dec 19, 2016, 1:27:37 PM12/19/16
to codenameone...@googlegroups.com
Hi Mickey,

I have just added the following build hints:

javascript.inject.beforeHead
javascript.inject.afterHead

You can add arbitrary HTML to these and they will be injected at the beginning or end of the <head> tag of the index file.

These will be available in the next server update on Friday.

Best regards

Steve

--
You received this message because you are subscribed to the Google Groups "CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email to codenameone-discussions+unsub...@googlegroups.com.
Visit this group at https://groups.google.com/group/codenameone-discussions.
To view this discussion on the web visit https://groups.google.com/d/msgid/codenameone-discussions/018a9a79-bf7b-49c8-8005-22a19415e7e7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Steve Hannah
Software Developer
Codename One

wng.m...@gmail.com

unread,
Dec 19, 2016, 1:54:34 PM12/19/16
to CodenameOne Discussions
Thanks Steve

This is a good idea, can a similar injection be done for <script>?

Steve Hannah

unread,
Dec 19, 2016, 2:18:55 PM12/19/16
to codenameone...@googlegroups.com
You mean to inject additional <script> tags?  You could embed them there in there also (in the head).  However, there is another way for script tags also:


Steve

On Mon, Dec 19, 2016 at 10:54 AM, <wng.m...@gmail.com> wrote:
Thanks Steve

This is a good idea, can a similar injection be done for <script>?

On Monday, December 19, 2016 at 1:27:37 PM UTC-5, Steve Hannah wrote:
Hi Mickey,

I have just added the following build hints:

javascript.inject.beforeHead
javascript.inject.afterHead

You can add arbitrary HTML to these and they will be injected at the beginning or end of the <head> tag of the index file.

These will be available in the next server update on Friday.

Best regards

Steve
On Mon, Dec 19, 2016 at 9:15 AM, <wng.m...@gmail.com> wrote:
Hi

I had an issue running the javascript version on chrome where the icon on the windows task bar became blurry. So I added this line in the index.html
<link rel="icon" type="image/x-icon" href="favicon.ico" sizes="32x32" />

Is there a way to include this line everytime I generate a new build?

Thanks

--
You received this message because you are subscribed to the Google Groups "CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email to codenameone-discussions+unsubscr...@googlegroups.com.



--
Steve Hannah
Software Developer
Codename One

--
You received this message because you are subscribed to the Google Groups "CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email to codenameone-discussions+unsub...@googlegroups.com.
Visit this group at https://groups.google.com/group/codenameone-discussions.

For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages