doc: replace by cdn src if insert script

This commit is contained in:
mayness
2019-11-14 19:37:22 +08:00
committed by RedHoodSu
parent 187d2f0d0d
commit 6625432455

View File

@@ -74,7 +74,7 @@ The JavaScript file size is quite huge(about 100kb gzipped) and therefore not su
```javascript
;(function () {
var src = 'node_modules/eruda/eruda.min.js';
var src = '//cdn.jsdelivr.net/npm/eruda';
if (!/eruda=true/.test(window.location) && localStorage.getItem('active-eruda') != 'true') return;
document.write('<scr' + 'ipt src="' + src + '"></scr' + 'ipt>');
document.write('<scr' + 'ipt>eruda.init();</scr' + 'ipt>');