UNPKG

next-csrf

Version:

CSRF mitigation library for Next.js

28 lines (27 loc) 854 B
(/* istanbul ignore next */ function (global, factory) { if (typeof define === "function" && define.amd) { define(['module', 'exports'], factory); } else if (typeof exports !== "undefined") { factory(module, exports); } else { var mod = { exports: {} }; factory(mod, mod.exports); global.focusScrollContainer = mod.exports; } })(this, function (module, exports) { 'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = { element: 'div', mutate: function mutate(element) { element.setAttribute('style', 'width: 100px; height: 50px; overflow: auto;'); element.innerHTML = '<div style="width: 500px; height: 40px;">scrollable content</div>'; } }; module.exports = exports['default']; }); //# sourceMappingURL=focus-scroll-container.js.map