mirror of
https://github.com/gnh1201/welsonjs.git
synced 2025-03-12 08:55:14 +00:00
Update chrome.js
This commit is contained in:
parent
031846c2ba
commit
2776c57602
|
@ -3,6 +3,7 @@
|
|||
/////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
var STD = require("lib/std");
|
||||
var RAND = require("lib/rand");
|
||||
var SHELL = require("lib/shell");
|
||||
var SYS = require("lib/system");
|
||||
var FILE = require("lib/file");
|
||||
|
@ -64,9 +65,13 @@ var ChromeObject = function() {
|
|||
return this;
|
||||
};
|
||||
|
||||
this.clear = function() {
|
||||
console.log("clear");
|
||||
return FILE.deleteFolder(SHELL.getPathOfMyDocuments() + "\\UserData_Chrome_" + this.profileName + "\\" + this.profileName);
|
||||
};
|
||||
|
||||
this.clearProfile = function() {
|
||||
var FN = SHELL.getPathOfMyDocuments() + "\\UserData_Chrome_" + this.profileName + "\\" + this.profileName;
|
||||
return FILE.deleteFolder(FN);
|
||||
return this.clear();
|
||||
};
|
||||
|
||||
this.setUserDataDir = function(dirname) {
|
||||
|
@ -452,6 +457,7 @@ var ChromeObject = function() {
|
|||
};
|
||||
|
||||
this.exit = function() {
|
||||
console.log("exit");
|
||||
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.require = global.require;
|
||||
|
|
Loading…
Reference in New Issue
Block a user