p5.js-web-editor/client/utils/isSecurePage.js

7 lines
103 B
JavaScript

const isSecurePage = () => (
window.location.protocol === 'https:'
);
export default isSecurePage;