allow setting blank UA using 'empty' keyword

This commit is contained in:
Ray Lothian 2018-11-04 10:18:40 +01:00
parent 166e756a45
commit e51d174079
2 changed files with 10 additions and 6 deletions

View file

@ -158,7 +158,7 @@
<input type="button" value="Window" title="Set this string as this window's User-Agent string" data-cmd="window">
<input type="button" value="Reset" title="Reset User-Agent string to the default one. This will not reset window-based UA strings. To reset them, use the 'Restart' button" style="margin-left: 2px;" data-cmd="reset">
</div>
<input id="ua" type="text" placeholder="Your preferred user-agent string">
<input id="ua" type="text" placeholder="Your preferred user-agent string" title="To set blank user-agent string, use 'empty' keyword">
<div id="explore"></div>
<script src="ua-parser.min.js"></script>
<script src="index.js"></script>