File size: 442 Bytes
7aec436
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
import gamepadUserscript from './userscript.js';
import gamepadUserstyle from '!raw-loader!./style.css'

const addStylesheet = (css) => {
  const stylesheet = document.createElement('style');
  stylesheet.textContent = css;
  document.head.appendChild(stylesheet);
};

const run = ({ scaffolding, options }) => {
  gamepadUserscript(scaffolding, options.pointerlock);
  addStylesheet(gamepadUserstyle);
};

export default run;