Code:
<script type="text/javascript">
if (navigator.userAgent.toLowerCase().indexOf('chrome') > -1);
Here's your problem ........................ ^
document.write('<link rel="stylesheet" type="text/css" href="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/css/chrome.css">');
</script>
Mistakes like this -- that are small, yet hard to spot -- are why almost every C-style language style guide recommends that you always use braces, even if the block is only one statement long.
Code:
if (navigator.userAgent.toLowerCase().indexOf('chrome') > -1) {
document.write('<link rel="stylesheet" type="text/css" href="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/css/chrome.css">');
}
Bookmarks