mirror of
https://github.com/gnh1201/welsonjs.git
synced 2025-05-09 21:26:04 +00:00
Update chrome.js
This commit is contained in:
parent
031846c2ba
commit
2776c57602
|
@ -3,6 +3,7 @@
|
||||||
/////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
var STD = require("lib/std");
|
var STD = require("lib/std");
|
||||||
|
var RAND = require("lib/rand");
|
||||||
var SHELL = require("lib/shell");
|
var SHELL = require("lib/shell");
|
||||||
var SYS = require("lib/system");
|
var SYS = require("lib/system");
|
||||||
var FILE = require("lib/file");
|
var FILE = require("lib/file");
|
||||||
|
@ -64,9 +65,13 @@ var ChromeObject = function() {
|
||||||
return this;
|
return this;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
this.clear = function() {
|
||||||
|
console.log("clear");
|
||||||
|
return FILE.deleteFolder(SHELL.getPathOfMyDocuments() + "\\UserData_Chrome_" + this.profileName + "\\" + this.profileName);
|
||||||
|
};
|
||||||
|
|
||||||
this.clearProfile = function() {
|
this.clearProfile = function() {
|
||||||
var FN = SHELL.getPathOfMyDocuments() + "\\UserData_Chrome_" + this.profileName + "\\" + this.profileName;
|
return this.clear();
|
||||||
return FILE.deleteFolder(FN);
|
|
||||||
};
|
};
|
||||||
|
|
||||||
this.setUserDataDir = function(dirname) {
|
this.setUserDataDir = function(dirname) {
|
||||||
|
@ -452,6 +457,7 @@ var ChromeObject = function() {
|
||||||
};
|
};
|
||||||
|
|
||||||
this.exit = function() {
|
this.exit = function() {
|
||||||
|
console.log("exit");
|
||||||
return this.sendPageRPC("Browser.close", {});
|
return this.sendPageRPC("Browser.close", {});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -1111,6 +1117,6 @@ exports.startWithDebugging = function(url, proxy, profileName, debuggingPort) {
|
||||||
;
|
;
|
||||||
};
|
};
|
||||||
|
|
||||||
exports.VERSIONINFO = "Chrome Web Browser Debugging Interface (chrome.js) version 0.2";
|
exports.VERSIONINFO = "Chrome Web Browser Debugging Interface (chrome.js) version 0.1";
|
||||||
exports.global = global;
|
exports.global = global;
|
||||||
exports.require = global.require;
|
exports.require = global.require;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user