~toastal/purescript-web-network-information

04a9488f1cd072402b14d82f746c0092c8e925fd — toastal 2 years ago 980b23b
Upgrade to purs 0.15: CommonJS → ES modules
2 files changed, 3 insertions(+), 3 deletions(-)

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

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

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

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

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