Skip to content

Commit

Permalink
Step 6 | Add relevant meta tags
Browse files Browse the repository at this point in the history
  • Loading branch information
amahdy committed Jan 16, 2017
1 parent e03fa47 commit 81f3104
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/main/java/org/vaadin/java_pwa/MyUI.java
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
import org.apache.commons.io.IOUtils;
import org.vaadin.leif.headertags.HeaderTagHandler;
import org.vaadin.leif.headertags.Link;
import org.vaadin.leif.headertags.LinkTags;
import org.vaadin.leif.headertags.Meta;
import org.vaadin.leif.headertags.MetaTags;

import com.vaadin.annotations.JavaScript;
import com.vaadin.annotations.Theme;
Expand Down Expand Up @@ -38,6 +39,10 @@
*/
@Theme("mytheme")
@JavaScript("vaadin://js/app.js")
@MetaTags({
@Meta(name="viewport", content="width=device-width, initial-scale=1"),
@Meta(name="theme-color", content="#00b4f0")
})
@Link(rel="manifest", href="VAADIN/manifest.json")
public class MyUI extends UI {

Expand Down

0 comments on commit 81f3104

Please sign in to comment.