mirror of
https://github.com/misskey-dev/misskey.git
synced 2024-12-23 04:10:39 +01:00
wip
This commit is contained in:
parent
9a0ac64f12
commit
21fc2595ce
3 changed files with 9 additions and 1 deletions
|
@ -16,6 +16,8 @@ console.info('Misskey Embed');
|
|||
const params = new URLSearchParams(location.search);
|
||||
const embedParams = parseEmbedParams(params);
|
||||
|
||||
console.info(embedParams);
|
||||
|
||||
// サイズの制限
|
||||
document.documentElement.style.maxWidth = '500px';
|
||||
|
||||
|
|
|
@ -29,6 +29,9 @@ import type { ParsedEmbedParams } from '@/embed-page.js';
|
|||
import { postMessageToParentWindow } from '@/post-message.js';
|
||||
import { defaultEmbedParams } from '@/embed-page.js';
|
||||
|
||||
const page = location.href.split('/')[1];
|
||||
console.log(page);
|
||||
|
||||
const embedParams = inject<ParsedEmbedParams>('embedParams', defaultEmbedParams);
|
||||
|
||||
//#region Embed Style
|
||||
|
|
|
@ -53,7 +53,10 @@ const devConfig: UserConfig = {
|
|||
'/favicon.ico': httpUrl,
|
||||
'/robots.txt': httpUrl,
|
||||
'/embed.js': httpUrl,
|
||||
'/embed': embedUrl,
|
||||
'/embed': {
|
||||
target: embedUrl,
|
||||
ws: true,
|
||||
},
|
||||
'/identicon': {
|
||||
target: httpUrl,
|
||||
rewrite(path) {
|
||||
|
|
Loading…
Reference in a new issue