Rename bar.js file to index.js and fix styling for switches and media progress bar.

This commit is contained in:
Jas Singh
2024-07-02 01:57:17 -07:00
parent 3cf2d73d57
commit fee85b255c
15 changed files with 58 additions and 38 deletions

View File

@@ -29,7 +29,9 @@ const renderWAPs = (self, network, staging, connecting) => {
Utils.merge(
[network.bind("wifi"), staging.bind("value"), connecting.bind("value")],
() => {
const WAPs = network.wifi.access_points;
// Sometimes the network service will yield a "this._device is undefined" when
// trying to access the "access_points" property. So we must check if it exists.
const WAPs = Object.hasOwnProperty.call(network.wifi, "access_points") ? network.wifi.access_points : [];
const isInStaging = (wap) => {
if (Object.keys(staging.value).length === 0) {