File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ import 'dart:async';
66import 'dart:convert' ;
77import 'dart:io' ;
88
9+ import 'package:path/path.dart' as p;
910import 'package:webkit_inspection_protocol/webkit_inspection_protocol.dart' ;
1011
1112import 'utils.dart' ;
@@ -62,7 +63,9 @@ class Chrome {
6263 ///
6364 /// Each url in [urls] will be loaded in a separate tab.
6465 static Future <Chrome > start (List <String > urls, {int port}) async {
65- var dataDir = Directory .systemTemp.createTempSync ();
66+ var dataDir = Directory (p.joinAll (
67+ [Directory .current.path, '.dart_tool' , 'webdev' , 'chrome_profile' ]))
68+ ..createSync (recursive: true );
6669 port = port == null || port == 0 ? await findUnusedPort () : port;
6770 var args = [
6871 // Using a tmp directory ensures that a new instance of chrome launches
You can’t perform that action at this time.
0 commit comments