mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-04-20 15:51:23 +02:00
Fix plugins
This commit is contained in:
18
src-tauri/plugins/importer-yaak/index.mjs
Normal file
18
src-tauri/plugins/importer-yaak/index.mjs
Normal file
@@ -0,0 +1,18 @@
|
||||
function u(r, t) {
|
||||
let e;
|
||||
try {
|
||||
e = JSON.parse(t);
|
||||
} catch {
|
||||
return;
|
||||
}
|
||||
if (!(!s(e) || !("yaakSchema" in e)))
|
||||
return "requests" in e.resources && (e.resources.httpRequests = e.resources.requests, delete e.resources.requests), { resources: e.resources };
|
||||
}
|
||||
function s(r) {
|
||||
return Object.prototype.toString.call(r) === "[object Object]";
|
||||
}
|
||||
export {
|
||||
s as isJSObject,
|
||||
u as pluginHookImport
|
||||
};
|
||||
//# sourceMappingURL=index.mjs.map
|
||||
Reference in New Issue
Block a user