Browse Source

load Roboto font required by Google branding guideline

Andrii Zadorozhnii 8 years ago
parent
commit
a83f33efe6
1 changed files with 5 additions and 1 deletions
  1. 5 1
      priv/google_sdk.dtl

+ 5 - 1
priv/google_sdk.dtl

@@ -3,8 +3,12 @@ var m = document.createElement('meta');
 m.name = "google-signin-client_id"; m.content = "{{clientid}}";
 document.getElementsByTagName('head')[0].appendChild(m);
 
-window.onbeforeunload = function(e){ gapi.auth2.getAuthInstance().signOut(); }
+var rf = document.createElement('link');
+rf.rel = "stypesheet"; rf.type = "text/css";
+rf.href = "https://fonts.googleapis.com/css?family=Roboto";
+document.getElementsByTagName('head')[0].appendChild(rf);
 
+window.onbeforeunload = function(e){ gapi.auth2.getAuthInstance().signOut(); }
 
 function render(){
   gapi.signin2.render('{{loginbtnid}}', {