meteorhacks / meteor-inject-initial

Allow injection of arbitrary data to initial Meteor HTML page
Other
78 stars 11 forks source link

Meteor 1.7.0.5 client side rawModHtml nothing happens #23

Open mgscreativa opened 6 years ago

mgscreativa commented 6 years ago

Hi! just installed meteor-inject-initial and put the following code in meteor server main file fo modify head tag:

Inject.rawModHtml('cdnStyle', function(html) {
            return html.replace('<head>', '<head><link rel="stylesheet" href="//fonts.googleapis.com/css?family=Open+Sans:300italic,400italic,600italic,700italic,400,600,700,300&amp;subset=latin">');
        });

But nothing happens, the page gets rendered without the new link tag at the beggining of the head.