mirror of
https://github.com/wuchangming/spy-debugger.git
synced 2026-01-18 14:29:45 +00:00
13 lines
487 B
JavaScript
13 lines
487 B
JavaScript
'use strict';
|
|
|
|
var fs = require('fs');
|
|
var path = require('path');
|
|
try {
|
|
var newTextPromptJs = fs.readFileSync(path.join(__dirname, '../../template/TextPrompt.js'));
|
|
fs.writeFileSync(path.join(__dirname, '../../node_modules/weinre/web/client/TextPrompt.js'), newTextPromptJs);
|
|
|
|
var utilsJs = fs.readFileSync(path.join(__dirname, '../../template/utils.js'));
|
|
fs.writeFileSync(path.join(__dirname, '../../node_modules/weinre/lib/utils.js'), utilsJs);
|
|
} catch (e) {
|
|
//
|
|
} |