Skip to content

Commit 5ab91a1

Browse files
committed
check if domain changes before saving - Fix #540
1 parent 8a9bccd commit 5ab91a1

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

gulpfile.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ const headerComment = require('gulp-header-comment');
1111
// Settings for building packages
1212
const settings = {
1313
name: 'codesy',
14-
version: '0.0.0.8',
14+
version: '0.0.0.9',
1515
source: './src',
1616
destination: './dist',
1717
static_files: {

src/home.js

+4-2
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,10 @@ codesy = {};
1010
codesy.storeDomain = function(domain) {
1111
return chrome.storage.local.get(null,
1212
function(data) {
13-
data.domain = domain || "";
14-
return chrome.storage.local.set(data);
13+
if (data.domain != domain ){
14+
data.domain = domain || "";
15+
return chrome.storage.local.set(data);
16+
}
1517
}
1618
);
1719
};

0 commit comments

Comments
 (0)