1
0
mirror of https://github.com/chinchang/web-maker.git synced 2025-07-13 01:56:24 +02:00

show message on non-chrome browsers

This commit is contained in:
Kushagra Gour
2017-09-19 00:32:52 +05:30
parent 3403946700
commit 0cb1ebafd3

View File

@ -254,6 +254,9 @@
<h2 style="margin-bottom:0.4em;">A blazing fast & offline web playground in your browser</h2>
<div style="margin-top: 30px;" id="cta">
<script>
if (navigator.userAgent.indexOf('Chrome') === -1) {
document.write('<img src="chrome-logo.png" height="30" alt="" style="vertical-align:middle"> Available only on Chrome currently.');
}
if (chrome.app.isInstalled) {
document.write('You have this extension already installed!')
}