Skip to content

Commit ea4d657

Browse files
committed
fix: hot corners still active for non pro users
1 parent f9a27bf commit ea4d657

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

src/LiveDevelopment/main.js

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,8 @@ define(function main(require, exports, module) {
9797
elemHighlights: CONSTANTS.HIGHLIGHT_HOVER, // default value, this will get updated when the extension loads
9898
showRulerLines: false, // default value, this will get updated when the extension loads
9999
imageGalleryState: _getImageGalleryState(), // image gallery selected state
100-
isPaidUser: false // will be updated when we fetch entitlements
100+
isPaidUser: false, // will be updated when we fetch entitlements
101+
hasLiveEditCapability: false // handled inside _liveEditCapabilityChanged function
101102
};
102103

103104
// Status labels/styles are ordered: error, not connected, progress1, progress2, connected.
@@ -232,6 +233,12 @@ define(function main(require, exports, module) {
232233
function _liveEditCapabilityChanged(newCapability) {
233234
if(newCapability !== hasLiveEditCapability){
234235
hasLiveEditCapability = newCapability;
236+
237+
// update the config to include the live edit capability
238+
const config = MultiBrowserLiveDev.getConfig();
239+
config.hasLiveEditCapability = hasLiveEditCapability;
240+
MultiBrowserLiveDev.updateConfig(config);
241+
235242
if(!hasLiveEditCapability && getCurrentMode() === LIVE_EDIT_MODE){
236243
// downgraded, so we need to disable live edit mode
237244
setMode(LIVE_HIGHLIGHT_MODE);

0 commit comments

Comments
 (0)