Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Meteor 1.7.0.5 client side rawModHtml nothing happens #23

Open
mgscreativa opened this issue Sep 6, 2018 · 0 comments
Open

Meteor 1.7.0.5 client side rawModHtml nothing happens #23

mgscreativa opened this issue Sep 6, 2018 · 0 comments

Comments

@mgscreativa
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant