Skip to content

Commit

Permalink
fix: fix bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
jrainlau committed May 10, 2019
1 parent 435c82b commit f48a1ec
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 4 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ Install from Chrome webstore: [Picee](https://chrome.google.com/webstore/detail/
## Installation for developer
1. Go to [chrome://extensions](chrome://extensions).
2. Turn on "Development mode" on the top right.
3. Drag [picee.crx](https://github.com/jrainlau/picee/releases/download/1.4.0/picee.crx) into the page.
3. Drag [picee.crx](https://github.com/jrainlau/picee/releases/download/1.4.1/picee.crx) into the page.
4. Done.

> PS: If Chrome tells you that **Picee** was unsafety, you can unzip [picee.zip](https://github.com/jrainlau/picee/releases/download/1.4.0/picee.zip), and install it by "install unzip extentions" from the top left.
> PS: If Chrome tells you that **Picee** was unsafety, you can unzip [picee.zip](https://github.com/jrainlau/picee/releases/download/1.4.1/picee.zip), and install it by "install unzip extentions" from the top left.
## Usage

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "picee",
"version": "1.4.0",
"version": "1.4.1",
"description": "Using github as your image hosting service",
"repository": {
"type": "git",
Expand Down
28 changes: 28 additions & 0 deletions picee/js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,20 @@ new Vue({
if (uploadHistory) {
this.uploadHistory = JSON.parse(uploadHistory)
}

const copyAsMarkdown = localStorage.getItem('picee_copy_as_markdown')
if (copyAsMarkdown) {
this.copyAsMarkdown = true
} else {
this.copyAsMarkdown = false
}

const renameWithHash = localStorage.getItem('picee_rename_with_hash')
if (renameWithHash) {
this.renameWithHash = true
} else {
this.renameWithHash = false
}
},
watch: {
autoUpload (val) {
Expand All @@ -101,6 +115,20 @@ new Vue({
this.compressSize = val
localStorage.setItem('picee_compress_size', val)
}
},
copyAsMarkdown (val) {
if (val) {
localStorage.setItem('picee_copy_as_markdown', true)
} else {
localStorage.removeItem('picee_copy_as_markdown')
}
},
renameWithHash (val) {
if (val) {
localStorage.setItem('picee_rename_with_hash', true)
} else {
localStorage.removeItem('picee_rename_with_hash')
}
}
},
methods: {
Expand Down
2 changes: 1 addition & 1 deletion picee/manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"manifest_version": 2,
"name": "Picee",
"version": "1.4.0",
"version": "1.4.1",
"description": "Using github as your image hosting service",
"homepage_url": "https://github.com/jrainlau/picee",
"icons": {
Expand Down

0 comments on commit f48a1ec

Please sign in to comment.