~toastal/purescript-web-network-information

35c8ad15bb353a6ad789a2f8a1a22aa00d95e35f — toastal 2 years ago c29c29f
Apply EditorConfig
3 files changed, 6 insertions(+), 6 deletions(-)

M bin/spago2nix-regenerate
M src/Web/HTML/Navigator/Extra.js
M src/Web/NetworkInformation.js
M bin/spago2nix-regenerate => bin/spago2nix-regenerate +1 -1
@@ 9,4 9,4 @@ PROJECT_ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/.."; pwd -P)"
cd "$PROJECT_ROOT"

spago2nix generate "$(grep -c ^processor /proc/cpuinfo)" -- \
   --config "./spago.dhall"
	--config "./spago.dhall"

M src/Web/HTML/Navigator/Extra.js => src/Web/HTML/Navigator/Extra.js +1 -1
@@ 2,5 2,5 @@
"use strict";

exports.connectionImpl = function(navigator) {
   return navigator.connection;
	return navigator.connection;
}

M src/Web/NetworkInformation.js => src/Web/NetworkInformation.js +4 -4
@@ 2,11 2,11 @@
"use strict";

exports.getProp = function(propName, netInfo) {
   return netInfo[propName];
	return netInfo[propName];
}

exports.onChangeImpl = function(handler, netInfo) {
   netInfo.onchange = function(e) {
      handler(e)();
   };
	netInfo.onchange = function(e) {
		handler(e)();
	};
}