mirror of
https://github.com/writeas/paste-chrome
synced 2018-07-20 11:45:21 +00:00
Fix whitespace in popup.js
This commit is contained in:
parent
109666e5f6
commit
9854650ee0
10
popup.js
10
popup.js
@ -91,11 +91,11 @@ document.addEventListener('DOMContentLoaded', function() {
|
||||
code: "window.getSelection().toString();"
|
||||
}, function(selection) {
|
||||
if (typeof selection !== 'undefined') {
|
||||
$content.value = selection[0];
|
||||
$content.value = selection[0];
|
||||
}
|
||||
// load previous draft
|
||||
if ($content.value == "") {
|
||||
H.load($content, 'ext-draft');
|
||||
H.load($content, 'ext-draft');
|
||||
}
|
||||
});
|
||||
|
||||
@ -232,9 +232,9 @@ document.addEventListener('DOMContentLoaded', function() {
|
||||
// bind font changing action
|
||||
for(var i = 0; i < fontRadios.length; i++) {
|
||||
fontRadios[i].onclick = function() {
|
||||
$content.className = this.value;
|
||||
setPublishText(this.value, false);
|
||||
H.save(fontRadios, 'font');
|
||||
$content.className = this.value;
|
||||
setPublishText(this.value, false);
|
||||
H.save(fontRadios, 'font');
|
||||
};
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user