"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.webNavigator = webNavigator;
const APINotImplementedError_1 = require("../../../../exception/APINotImplementedError");
function webNavigator(window, opt) {
    const { navigator } = window;
    const _navigator = {
        share: async (opt) => {
            if (navigator.share) {
                await navigator.share(opt);
            }
            else {
                throw new APINotImplementedError_1.APINotSupportedError('Share');
            }
        },
    };
    return _navigator;
}
//# sourceMappingURL=navigator.js.map