You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: snippets/devtools_import_export.js
+19-8Lines changed: 19 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -170,7 +170,7 @@
170
170
wa.document.body.appendChild(confirmerDivPopup);
171
171
}else{
172
172
document.body.appendChild(confirmerDiv);
173
-
window.alert("To inspect localStorage of\n"+location.origin+'\n\nOpen '+title+'\n\n To import/export devtools source snippets:\n\n1. Cancel\n2. Undock Chrome Developer Tools into separate window\n3. Press Ctrl+Shift+I to inspect it.\n4. Run this snippet from there.');
173
+
window.alert("To inspect localStorage of\n"+location.origin+'\n\n* Open '+title+'\n\nTo import/export devtools source snippets:\n\n* Cancel\n* Undock Developer Tools into separate window\n* Press Ctrl+Shift+I to inspect it.\n* Run this snippet from there.');
174
174
}
175
175
varremoveConfirmer=function(confirmerDiv){
176
176
document.body.removeChild(confirmerDiv);
@@ -251,13 +251,24 @@
251
251
localStorageDownloadButton.click();
252
252
if(window.confirm("I have verified localStorage download completed successfully and would like to delete all snippets from Chrome now.\n\n(This cannot be undone when localStorage data has not been downloaded.)")){
253
253
p=WebInspector.scriptSnippetModel.project();
254
-
varpaths=p.uiSourceCodes().map(function(sc){
255
-
returnsc.path();
256
-
});
257
-
paths.forEach(function(path){
258
-
p.deleteFile(path);
259
-
console.log("snippet "+path+" has been deleted.");
260
-
});
254
+
varscs=p.uiSourceCodes();
255
+
// TODO Please note Chrome 30 deleteFile takes a uiSourceCode argument.
0 commit comments