mirror of
https://github.com/orangeglo/gbnp.git
synced 2026-08-19 23:24:07 -05:00
Add devload, but comment out
This commit is contained in:
10
script/devload.js
Normal file
10
script/devload.js
Normal file
@@ -0,0 +1,10 @@
|
||||
if (document.location.href.includes('file://')) {
|
||||
const head = document.getElementsByTagName('head')[0];
|
||||
const devScript = document.createElement('script');
|
||||
devScript.type = 'text/javascript';
|
||||
devScript.src = 'script/vue.js';
|
||||
|
||||
const thisScript = document.getElementById('devload');
|
||||
thisScript.parentNode.insertBefore(devScript, thisScript.nextSibling);
|
||||
console.log('Development Mode')
|
||||
}
|
||||
Reference in New Issue
Block a user