Release Vulpes OS Preview 26 with Gecko 161.0 and Tundra 0.2.0
This commit is contained in:
parent
3a1fba4efe
commit
e241a42d2f
1 changed files with 1305 additions and 331 deletions
|
|
@ -31,12 +31,10 @@
|
|||
break;
|
||||
|
||||
case 'connected':
|
||||
if (!this.manager.wifiManager.connectionInformation) {
|
||||
return;
|
||||
}
|
||||
var level = Math.min(Math.floor(
|
||||
this.manager.wifiManager
|
||||
.connectionInformation.relSignalStrength / 20), 4);
|
||||
var info = this.manager.wifiManager.connectionInformation;
|
||||
var strength = info && info.relSignalStrength;
|
||||
var level = Number.isFinite(strength) ?
|
||||
Math.max(0, Math.min(4, Math.floor(strength / 20))) : 0;
|
||||
this.show();
|
||||
if (icon.dataset.connecting) {
|
||||
delete icon.dataset.connecting;
|
||||
|
|
@ -54,7 +52,7 @@
|
|||
WifiIcon.prototype.view = function view() {
|
||||
return `<div id="statusbar-wifi"
|
||||
class="sb-icon sb-icon-wifi"
|
||||
data-level="4" hidden
|
||||
data-level="0" hidden
|
||||
role="listitem">
|
||||
</div>`;
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in a new issue