diff --git a/.idea/inspectionProfiles/Project_Default.xml b/.idea/inspectionProfiles/Project_Default.xml
new file mode 100644
index 000000000..146ab09b7
--- /dev/null
+++ b/.idea/inspectionProfiles/Project_Default.xml
@@ -0,0 +1,10 @@
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/misc.xml b/.idea/misc.xml
index 639900d13..7e5bdf89f 100644
--- a/.idea/misc.xml
+++ b/.idea/misc.xml
@@ -1,5 +1,8 @@
+
+
+
diff --git a/.idea/workspace.xml b/.idea/workspace.xml
index cc98bef0e..79fcb737a 100644
--- a/.idea/workspace.xml
+++ b/.idea/workspace.xml
@@ -2,9 +2,11 @@
-
-
+
+
+
+
@@ -15,6 +17,12 @@
+
+ true
+
+ true
+ true
+
@@ -23,6 +31,7 @@
+
1563561154310
-
+
1563561565148
@@ -55,7 +64,14 @@
1563561565148
-
+
+ 1563561631038
+
+
+
+ 1563561631038
+
+
diff --git a/background.js b/background.js
index 74b3227b7..4e323a735 100644
--- a/background.js
+++ b/background.js
@@ -216,7 +216,8 @@ async function saveWholePage() {
async function saveNote(title, content) {
const resp = await triliumServerFacade.callService('POST', 'notes', {
title: title,
- content: content
+ content: content,
+ clipType: 'note'
});
if (!resp) {
diff --git a/content.js b/content.js
index 70044fd58..d4ca967e7 100644
--- a/content.js
+++ b/content.js
@@ -278,7 +278,8 @@ async function prepareMessageResponse(message) {
title: title,
content: body.innerHTML,
images: images,
- pageUrl: getPageLocationOrigin() + location.pathname + location.search
+ pageUrl: getPageLocationOrigin() + location.pathname + location.search,
+ clipType: 'page'
};
}
else {
diff --git a/manifest.json b/manifest.json
index ec320b656..558bb9e7f 100644
--- a/manifest.json
+++ b/manifest.json
@@ -1,7 +1,7 @@
{
"manifest_version": 2,
"name": "Trilium Web Clipper (dev)",
- "version": "0.1.5",
+ "version": "0.1.0-beta",
"description": "Save web clippings to Trilium Notes.",
"homepage_url": "https://github.com/zadam/trilium-web-clipper",
"content_security_policy": "script-src 'self' 'unsafe-eval'; object-src 'self'",
diff --git a/popup/popup.css b/popup/popup.css
index 89d7bf23c..cf958c3ca 100644
--- a/popup/popup.css
+++ b/popup/popup.css
@@ -1,6 +1,7 @@
html, body {
width: 300px;
font-size: 12px;
+ font-family: sans-serif;
}
.button {