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