Skip to content
Browse files

Don't ask about using Scratchpad if it is disabled by the 'devtools.s…

…cratchpad.enabled' pref.
  • Loading branch information...
1 parent 60ddbb6 commit 2fc483f86bae9e52051bd673d41ff03aedabeb63 @supahgreg supahgreg committed
Showing with 2 additions and 1 deletion.
  1. +2 −1 extension/modules/utils/Scriptish_getEditor.js
View
3 extension/modules/utils/Scriptish_getEditor.js
@@ -38,7 +38,8 @@ const Scriptish_getEditor = function(parentWindow, change) {
// pick a non-executable file, so we set this up in a loop so that if they do
// that we can give them an error and try again.
var hasScratchpad =
- !!Services.wm.getMostRecentWindow("navigator:browser").Scratchpad;
+ !!Services.wm.getMostRecentWindow("navigator:browser").Scratchpad
+ && Services.prefs.getBoolPref("devtools.scratchpad.enabled");
var sp = Services.prompt;
var flags = sp.BUTTON_POS_0 * sp.BUTTON_TITLE_IS_STRING
+ sp.BUTTON_POS_1 * sp.BUTTON_TITLE_IS_STRING;

0 comments on commit 2fc483f

Please sign in to comment.
Something went wrong with that request. Please try again.