Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
setTransformOrigin: origin => {
this.$el.style.setProperty(
`${util.getTransformPropertyName(window)}-origin`,
origin,
);
},
},
export const setTransformOrigin = (menu: HTMLElement, origin: string) => {
const propertyName = `${getTransformPropertyName(window)}-origin`;
menu.style.setProperty(propertyName, origin);
};