UNPKG

@anywhichway/lazui

Version:

Single page apps and lazy loading sites with minimal JavaScript or client build processes.

16 lines (13 loc) 426 B
function _contentType() { // target does nothing, it is just used for data } const contentType = new Proxy(_contentType, { apply: function(target, thisArg, argumentsList) { return target.apply(thisArg, argumentsList); }, get(target, prop, receiver) { if(prop === 'name') return 'content-type'; return Reflect.get(target, prop, receiver); } }) export {contentType};