Skip to content

Commit 7db2ee7

Browse files
authored
Merge pull request #120 from codesy/dont-refresh-so-much-540
check if domain changes before saving - Fix #540
2 parents 8a9bccd + 458cd59 commit 7db2ee7

File tree

4 files changed

+7
-5
lines changed

4 files changed

+7
-5
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/csp.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ function setCodesyAppender (domain) {
3939
};
4040

4141
chrome.storage.local.get(null,
42-
({domain = "https://codesy.io" })=>{
42+
({domain = "https://www.codesy.io" })=>{
4343
if (domain) setCodesyAppender(domain);
4444
}
4545
);

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
};

src/issue.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ function wait_for_page_change ( {url, id} ) {
5454

5555
function get_codesy_domain () {
5656
return new Promise((resolve) => {
57-
const resolve_domain = ({domain = "https://codesy.io"}) => resolve(domain)
57+
const resolve_domain = ({domain = "https://www.codesy.io"}) => resolve(domain)
5858
chrome.storage.local.get(null, resolve_domain)
5959
});
6060
}

0 commit comments

Comments
 (0)