Skip to content
This repository was archived by the owner on Aug 23, 2023. It is now read-only.

Commit befda4d

Browse files
committed
fix: Support iOS
1 parent 3b94a4d commit befda4d

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/core/startDevTool/index.test.ts

-2
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,6 @@ describe('startDevTool()', () => {
3939

4040
listenerSpy()
4141

42-
expect(replaceSourceWithTargetSourceSpy).toBeCalledTimes(1)
43-
4442
expect(stopSpy).toBeCalledTimes(1)
4543
})
4644
})

src/core/startDevTool/index.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,9 @@ function startDevTool() {
1414
location.reload()
1515

1616
shakeDetector.stop()
17-
}).start()
17+
}).confirmPermissionGranted().start()
18+
19+
shakeDetector.requestPermission().then(() => shakeDetector.start())
1820
}
1921

2022
export default startDevTool

0 commit comments

Comments
 (0)